PageRenderTime 61ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 1ms

/src/configure

https://bitbucket.org/iridl/udunits
Shell | 5522 lines | 4321 code | 576 blank | 625 comment | 494 complexity | 0867c4e5895cbbcad329253a53814aa1 MD5 | raw file
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.9
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. # Initialize some variables set by options.
  13. # The variables have the same names as the options, with
  14. # dashes changed to underlines.
  15. build=NONE
  16. cache_file=./config.cache
  17. exec_prefix=NONE
  18. host=NONE
  19. no_create=
  20. nonopt=NONE
  21. no_recursion=
  22. prefix=NONE
  23. program_prefix=NONE
  24. program_suffix=NONE
  25. program_transform_name=s,x,x,
  26. silent=
  27. site=
  28. srcdir=
  29. target=NONE
  30. verbose=
  31. x_includes=NONE
  32. x_libraries=NONE
  33. bindir='${exec_prefix}/bin'
  34. sbindir='${exec_prefix}/sbin'
  35. libexecdir='${exec_prefix}/libexec'
  36. datadir='${prefix}/share'
  37. sysconfdir='${prefix}/etc'
  38. sharedstatedir='${prefix}/com'
  39. localstatedir='${prefix}/var'
  40. libdir='${exec_prefix}/lib'
  41. includedir='${prefix}/include'
  42. oldincludedir='/usr/include'
  43. infodir='${prefix}/info'
  44. mandir='${prefix}/man'
  45. # Initialize some other variables.
  46. subdirs=
  47. MFLAGS= MAKEFLAGS=
  48. ac_prev=
  49. for ac_option
  50. do
  51. # If the previous option needs an argument, assign it.
  52. if test -n "$ac_prev"; then
  53. eval "$ac_prev=\$ac_option"
  54. ac_prev=
  55. continue
  56. fi
  57. case "$ac_option" in
  58. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  59. *) ac_optarg= ;;
  60. esac
  61. # Accept the important Cygnus configure options, so we can diagnose typos.
  62. case "$ac_option" in
  63. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  64. ac_prev=bindir ;;
  65. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  66. bindir="$ac_optarg" ;;
  67. -build | --build | --buil | --bui | --bu)
  68. ac_prev=build ;;
  69. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  70. build="$ac_optarg" ;;
  71. -cache-file | --cache-file | --cache-fil | --cache-fi \
  72. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  73. ac_prev=cache_file ;;
  74. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  75. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  76. cache_file="$ac_optarg" ;;
  77. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  78. ac_prev=datadir ;;
  79. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  80. | --da=*)
  81. datadir="$ac_optarg" ;;
  82. -disable-* | --disable-*)
  83. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  84. # Reject names that are not valid shell variable names.
  85. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  86. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  87. fi
  88. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  89. eval "enable_${ac_feature}=no" ;;
  90. -enable-* | --enable-*)
  91. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  92. # Reject names that are not valid shell variable names.
  93. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  94. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  95. fi
  96. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  97. case "$ac_option" in
  98. *=*) ;;
  99. *) ac_optarg=yes ;;
  100. esac
  101. eval "enable_${ac_feature}='$ac_optarg'" ;;
  102. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  103. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  104. | --exec | --exe | --ex)
  105. ac_prev=exec_prefix ;;
  106. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  107. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  108. | --exec=* | --exe=* | --ex=*)
  109. exec_prefix="$ac_optarg" ;;
  110. -gas | --gas | --ga | --g)
  111. # Obsolete; use --with-gas.
  112. with_gas=yes ;;
  113. -help | --help | --hel | --he)
  114. # Omit some internal or obsolete options to make the list less imposing.
  115. # This message is too long to be a string in the A/UX 3.1 sh.
  116. cat << EOF
  117. Usage: configure [options] [host]
  118. Options: [defaults in brackets after descriptions]
  119. Configuration:
  120. --cache-file=FILE cache test results in FILE
  121. --help print this message
  122. --no-create do not create output files
  123. --quiet, --silent do not print \`checking...' messages
  124. --version print the version of autoconf that created configure
  125. Directory and file names:
  126. --prefix=PREFIX install architecture-independent files in PREFIX
  127. [$ac_default_prefix]
  128. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  129. [same as prefix]
  130. --bindir=DIR user executables in DIR [EPREFIX/bin]
  131. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  132. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  133. --datadir=DIR read-only architecture-independent data in DIR
  134. [PREFIX/share]
  135. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  136. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  137. [PREFIX/com]
  138. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  139. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  140. --includedir=DIR C header files in DIR [PREFIX/include]
  141. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  142. --infodir=DIR info documentation in DIR [PREFIX/info]
  143. --mandir=DIR man documentation in DIR [PREFIX/man]
  144. --srcdir=DIR find the sources in DIR [configure dir or ..]
  145. --program-prefix=PREFIX prepend PREFIX to installed program names
  146. --program-suffix=SUFFIX append SUFFIX to installed program names
  147. --program-transform-name=PROGRAM
  148. run sed PROGRAM on installed program names
  149. EOF
  150. cat << EOF
  151. Host type:
  152. --build=BUILD configure for building on BUILD [BUILD=HOST]
  153. --host=HOST configure for HOST [guessed]
  154. --target=TARGET configure for TARGET [TARGET=HOST]
  155. Features and packages:
  156. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  157. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  158. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  159. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  160. --x-includes=DIR X include files are in DIR
  161. --x-libraries=DIR X library files are in DIR
  162. EOF
  163. if test -n "$ac_help"; then
  164. echo "--enable and --with options recognized:$ac_help"
  165. fi
  166. exit 0 ;;
  167. -host | --host | --hos | --ho)
  168. ac_prev=host ;;
  169. -host=* | --host=* | --hos=* | --ho=*)
  170. host="$ac_optarg" ;;
  171. -includedir | --includedir | --includedi | --included | --include \
  172. | --includ | --inclu | --incl | --inc)
  173. ac_prev=includedir ;;
  174. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  175. | --includ=* | --inclu=* | --incl=* | --inc=*)
  176. includedir="$ac_optarg" ;;
  177. -infodir | --infodir | --infodi | --infod | --info | --inf)
  178. ac_prev=infodir ;;
  179. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  180. infodir="$ac_optarg" ;;
  181. -libdir | --libdir | --libdi | --libd)
  182. ac_prev=libdir ;;
  183. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  184. libdir="$ac_optarg" ;;
  185. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  186. | --libexe | --libex | --libe)
  187. ac_prev=libexecdir ;;
  188. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  189. | --libexe=* | --libex=* | --libe=*)
  190. libexecdir="$ac_optarg" ;;
  191. -localstatedir | --localstatedir | --localstatedi | --localstated \
  192. | --localstate | --localstat | --localsta | --localst \
  193. | --locals | --local | --loca | --loc | --lo)
  194. ac_prev=localstatedir ;;
  195. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  196. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  197. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  198. localstatedir="$ac_optarg" ;;
  199. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  200. ac_prev=mandir ;;
  201. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  202. mandir="$ac_optarg" ;;
  203. -nfp | --nfp | --nf)
  204. # Obsolete; use --without-fp.
  205. with_fp=no ;;
  206. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  207. | --no-cr | --no-c)
  208. no_create=yes ;;
  209. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  210. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  211. no_recursion=yes ;;
  212. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  213. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  214. | --oldin | --oldi | --old | --ol | --o)
  215. ac_prev=oldincludedir ;;
  216. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  217. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  218. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  219. oldincludedir="$ac_optarg" ;;
  220. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  221. ac_prev=prefix ;;
  222. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  223. prefix="$ac_optarg" ;;
  224. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  225. | --program-pre | --program-pr | --program-p)
  226. ac_prev=program_prefix ;;
  227. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  228. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  229. program_prefix="$ac_optarg" ;;
  230. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  231. | --program-suf | --program-su | --program-s)
  232. ac_prev=program_suffix ;;
  233. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  234. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  235. program_suffix="$ac_optarg" ;;
  236. -program-transform-name | --program-transform-name \
  237. | --program-transform-nam | --program-transform-na \
  238. | --program-transform-n | --program-transform- \
  239. | --program-transform | --program-transfor \
  240. | --program-transfo | --program-transf \
  241. | --program-trans | --program-tran \
  242. | --progr-tra | --program-tr | --program-t)
  243. ac_prev=program_transform_name ;;
  244. -program-transform-name=* | --program-transform-name=* \
  245. | --program-transform-nam=* | --program-transform-na=* \
  246. | --program-transform-n=* | --program-transform-=* \
  247. | --program-transform=* | --program-transfor=* \
  248. | --program-transfo=* | --program-transf=* \
  249. | --program-trans=* | --program-tran=* \
  250. | --progr-tra=* | --program-tr=* | --program-t=*)
  251. program_transform_name="$ac_optarg" ;;
  252. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  253. | -silent | --silent | --silen | --sile | --sil)
  254. silent=yes ;;
  255. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  256. ac_prev=sbindir ;;
  257. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  258. | --sbi=* | --sb=*)
  259. sbindir="$ac_optarg" ;;
  260. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  261. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  262. | --sharedst | --shareds | --shared | --share | --shar \
  263. | --sha | --sh)
  264. ac_prev=sharedstatedir ;;
  265. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  266. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  267. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  268. | --sha=* | --sh=*)
  269. sharedstatedir="$ac_optarg" ;;
  270. -site | --site | --sit)
  271. ac_prev=site ;;
  272. -site=* | --site=* | --sit=*)
  273. site="$ac_optarg" ;;
  274. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  275. ac_prev=srcdir ;;
  276. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  277. srcdir="$ac_optarg" ;;
  278. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  279. | --syscon | --sysco | --sysc | --sys | --sy)
  280. ac_prev=sysconfdir ;;
  281. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  282. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  283. sysconfdir="$ac_optarg" ;;
  284. -target | --target | --targe | --targ | --tar | --ta | --t)
  285. ac_prev=target ;;
  286. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  287. target="$ac_optarg" ;;
  288. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  289. verbose=yes ;;
  290. -version | --version | --versio | --versi | --vers)
  291. echo "configure generated by autoconf version 2.9"
  292. exit 0 ;;
  293. -with-* | --with-*)
  294. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  295. # Reject names that are not valid shell variable names.
  296. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  297. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  298. fi
  299. ac_package=`echo $ac_package| sed 's/-/_/g'`
  300. case "$ac_option" in
  301. *=*) ;;
  302. *) ac_optarg=yes ;;
  303. esac
  304. eval "with_${ac_package}='$ac_optarg'" ;;
  305. -without-* | --without-*)
  306. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  307. # Reject names that are not valid shell variable names.
  308. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  309. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  310. fi
  311. ac_package=`echo $ac_package| sed 's/-/_/g'`
  312. eval "with_${ac_package}=no" ;;
  313. --x)
  314. # Obsolete; use --with-x.
  315. with_x=yes ;;
  316. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  317. | --x-incl | --x-inc | --x-in | --x-i)
  318. ac_prev=x_includes ;;
  319. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  320. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  321. x_includes="$ac_optarg" ;;
  322. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  323. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  324. ac_prev=x_libraries ;;
  325. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  326. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  327. x_libraries="$ac_optarg" ;;
  328. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  329. ;;
  330. *)
  331. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  332. echo "configure: warning: $ac_option: invalid host type" 1>&2
  333. fi
  334. if test "x$nonopt" != xNONE; then
  335. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  336. fi
  337. nonopt="$ac_option"
  338. ;;
  339. esac
  340. done
  341. if test -n "$ac_prev"; then
  342. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  343. fi
  344. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  345. # File descriptor usage:
  346. # 0 standard input
  347. # 1 file creation
  348. # 2 errors and warnings
  349. # 3 some systems may open it to /dev/tty
  350. # 4 used on the Kubota Titan
  351. # 6 checking for... messages and results
  352. # 5 compiler messages saved in config.log
  353. if test "$silent" = yes; then
  354. exec 6>/dev/null
  355. else
  356. exec 6>&1
  357. fi
  358. exec 5>./config.log
  359. echo "\
  360. This file contains any messages produced by compilers while
  361. running configure, to aid debugging if configure makes a mistake.
  362. " 1>&5
  363. # Strip out --no-create and --no-recursion so they do not pile up.
  364. # Also quote any args containing shell metacharacters.
  365. ac_configure_args=
  366. for ac_arg
  367. do
  368. case "$ac_arg" in
  369. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  370. | --no-cr | --no-c) ;;
  371. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  372. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  373. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  374. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  375. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  376. esac
  377. done
  378. # NLS nuisances.
  379. # Only set LANG and LC_ALL to C if already set.
  380. # These must not be set unconditionally because not all systems understand
  381. # e.g. LANG=C (notably SCO).
  382. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  383. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  384. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  385. rm -rf conftest* confdefs.h
  386. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  387. echo > confdefs.h
  388. # A filename unique to this package, relative to the directory that
  389. # configure is in, which we can look for to find out if srcdir is correct.
  390. ac_unique_file=udunits
  391. # Find the source files, if location was not specified.
  392. if test -z "$srcdir"; then
  393. ac_srcdir_defaulted=yes
  394. # Try the directory containing this script, then its parent.
  395. ac_prog=$0
  396. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  397. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  398. srcdir=$ac_confdir
  399. if test ! -r $srcdir/$ac_unique_file; then
  400. srcdir=..
  401. fi
  402. else
  403. ac_srcdir_defaulted=no
  404. fi
  405. if test ! -r $srcdir/$ac_unique_file; then
  406. if test "$ac_srcdir_defaulted" = yes; then
  407. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  408. else
  409. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  410. fi
  411. fi
  412. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  413. # Prefer explicitly selected file to automatically selected ones.
  414. if test -z "$CONFIG_SITE"; then
  415. if test "x$prefix" != xNONE; then
  416. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  417. else
  418. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  419. fi
  420. fi
  421. for ac_site_file in $CONFIG_SITE; do
  422. if test -r "$ac_site_file"; then
  423. echo "loading site script $ac_site_file"
  424. . "$ac_site_file"
  425. fi
  426. done
  427. if test -r "$cache_file"; then
  428. echo "loading cache $cache_file"
  429. . $cache_file
  430. else
  431. echo "creating cache $cache_file"
  432. > $cache_file
  433. fi
  434. ac_ext=c
  435. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  436. ac_cpp='$CPP $CPPFLAGS'
  437. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  438. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  439. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  440. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  441. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  442. ac_n= ac_c='
  443. ' ac_t=' '
  444. else
  445. ac_n=-n ac_c= ac_t=
  446. fi
  447. else
  448. ac_n= ac_c='\c' ac_t=
  449. fi
  450. if test -r CUSTOMIZE; then
  451. . ./CUSTOMIZE
  452. fi
  453. echo $ac_n "checking type of operating system""... $ac_c" 1>&6
  454. if test -z "$OPSYS"; then
  455. OPSYS=`uname -s | tr '[A-Z]' '[a-z]' | sed 's;/;;g'`
  456. if test -z "$OPSYS"; then
  457. echo "OPSYS:operating system:sunos5" >> confdefs.missing
  458. fi
  459. fi
  460. case $OPSYS in
  461. aix)
  462. OS_NAME=`uname -s`
  463. OS_MAJOR=`uname -v | sed 's/[^0-9]*\([0-9]*\)\..*/\1/'`
  464. ;;
  465. hp-ux)
  466. OPSYS=hpux`uname -r | sed 's/[A-Z.0]*\([0-9]*\).*/\1/'`
  467. OS_NAME=HPUX
  468. OS_MAJOR=`uname -r | sed 's/[A-Z.0]*\([0-9]*\).*/\1/'`
  469. ;;
  470. irix)
  471. OPSYS=${OPSYS}`uname -r | sed 's/\..*//'`
  472. OS_NAME=IRIX
  473. OS_MAJOR=`uname -r | sed 's/\..*//'`
  474. ;;
  475. osf*)
  476. OS_NAME=OSF1
  477. OS_MAJOR=`uname -r | sed 's/[^0-9]*\([0-9]*\)\..*/\1/'`
  478. ;;
  479. sn*)
  480. OPSYS=unicos
  481. OS_NAME=UNICOS
  482. OS_MAJOR=`uname -r | sed 's/[^0-9]*\([0-9]*\)\..*/\1/'`
  483. ;;
  484. sunos)
  485. OS_NAME=SunOS
  486. OS_MAJOR=`uname -r | sed 's/\..*//'`
  487. OPSYS=$OPSYS$OS_MAJOR
  488. ;;
  489. ultrix)
  490. OS_NAME=ULTRIX
  491. OS_MAJOR=`uname -r | sed 's/\..*//'`
  492. ;;
  493. *)
  494. # On at least one UNICOS system, 'uname -s' returned the
  495. # hostname (sigh).
  496. if uname -a | grep CRAY >/dev/null; then
  497. OPSYS=unicos
  498. OS_NAME=UNICOS
  499. else
  500. OS_NAME=`uname -s | sed 's/[^A-Za-z0-9_]//g'`
  501. fi
  502. OS_MAJOR=`uname -r | sed 's/[^0-9]*\([0-9]*\)\..*/\1/'`
  503. ;;
  504. esac
  505. # Adjust OPSYS for CRAY MPP environment.
  506. #
  507. case "$OPSYS" in
  508. unicos)
  509. case "$CC$TARGET$CFLAGS" in
  510. *cray-t3*)
  511. OPSYS=unicos-mpp
  512. ;;
  513. esac
  514. ;;
  515. esac
  516. cat >> confdefs.h <<EOF
  517. #define OS_NAME $OS_NAME
  518. EOF
  519. cat >> confdefs.h <<EOF
  520. #define OS_MAJOR $OS_MAJOR
  521. EOF
  522. echo "$ac_t""$OPSYS" 1>&6
  523. rm -f confdefs.missing
  524. for arg in port/master.mk; do
  525. case "$CONFIG_FILES" in
  526. *$arg*)
  527. ;;
  528. *)
  529. CONFIG_FILES="${CONFIG_FILES-} $arg"
  530. ;;
  531. esac
  532. done
  533. for arg in port/Makefile; do
  534. case "$CONFIG_FILES" in
  535. *$arg*)
  536. ;;
  537. *)
  538. CONFIG_FILES="${CONFIG_FILES-} $arg"
  539. ;;
  540. esac
  541. done
  542. PORT_SUBDIRS=${PORT_SUBDIRS-""}
  543. PORT_MANIFEST=${PORT_MANIFEST-""}
  544. #
  545. # NB: We always want to define WHATIS to prevent the
  546. # $(MANDIR)/$(WHATIS) make(1) target from being just $(MANDIR)/ and
  547. # conflicting with the (directory creation) target with the same name.
  548. #
  549. WHATIS=whatis
  550. case `uname -sr` in
  551. BSD/OS*)
  552. # Can't generate a user-database -- only /usr/share/man/whatis.db.
  553. MAKEWHATIS_CMD=
  554. ;;
  555. 'IRIX64 6.5'|'IRIX 6.5')
  556. MAKEWHATIS_CMD='/usr/lib/makewhatis -M $(MANDIR) $(MANDIR)/whatis'
  557. ;;
  558. 'IRIX 6'*)
  559. # Can't generate a user-database.
  560. MAKEWHATIS_CMD=
  561. ;;
  562. HP-UX*)
  563. # Can't generate a user-database -- only /usr/lib/whatis.
  564. MAKEWHATIS_CMD=
  565. ;;
  566. 'Linux '*)
  567. # /usr/sbin/makewhatis doesn't work
  568. MAKEWHATIS_CMD=
  569. ;;
  570. ULTRIX*)
  571. # Can't generate a user-database -- only /usr/lib/whatis.
  572. MAKEWHATIS_CMD=
  573. ;;
  574. *)
  575. if test -r /usr/man/windex; then
  576. WHATIS=windex
  577. fi
  578. for ac_prog in catman makewhatis /usr/lib/makewhatis
  579. do
  580. # Extract the first word of "$ac_prog", so it can be a program name with args.
  581. set dummy $ac_prog; ac_word=$2
  582. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  583. if eval "test \"`echo '$''{'ac_cv_prog_prog'+set}'`\" = set"; then
  584. echo $ac_n "(cached) $ac_c" 1>&6
  585. else
  586. if test -n "$prog"; then
  587. ac_cv_prog_prog="$prog" # Let the user override the test.
  588. else
  589. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  590. for ac_dir in $PATH; do
  591. test -z "$ac_dir" && ac_dir=.
  592. if test -f $ac_dir/$ac_word; then
  593. ac_cv_prog_prog="$ac_prog"
  594. break
  595. fi
  596. done
  597. IFS="$ac_save_ifs"
  598. fi
  599. fi
  600. prog="$ac_cv_prog_prog"
  601. if test -n "$prog"; then
  602. echo "$ac_t""$prog" 1>&6
  603. else
  604. echo "$ac_t""no" 1>&6
  605. fi
  606. test -n "$prog" && break
  607. done
  608. case "$prog" in
  609. *catman*)
  610. MAKEWHATIS_CMD=$prog' -w -M $(MANDIR)'
  611. ;;
  612. *makewhatis*)
  613. MAKEWHATIS_CMD=$prog' $(MANDIR)'
  614. ;;
  615. esac
  616. ;;
  617. esac
  618. echo $ac_n "checking for manual-page index command""... $ac_c" 1>&6
  619. echo "$ac_t""$MAKEWHATIS_CMD" 1>&6
  620. #
  621. # Ensure that the CC variable is unset so that it can be
  622. # set here rather than by the autoconf-generated
  623. # configure-script preamble.
  624. #
  625. # unset CC
  626. #
  627. case ${CC-unset} in
  628. unset)
  629. case `uname -s` in
  630. AIX)
  631. for ac_prog in c89 xlc cc gcc
  632. do
  633. # Extract the first word of "$ac_prog", so it can be a program name with args.
  634. set dummy $ac_prog; ac_word=$2
  635. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  636. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  637. echo $ac_n "(cached) $ac_c" 1>&6
  638. else
  639. if test -n "$CC"; then
  640. ac_cv_prog_CC="$CC" # Let the user override the test.
  641. else
  642. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  643. for ac_dir in $PATH; do
  644. test -z "$ac_dir" && ac_dir=.
  645. if test -f $ac_dir/$ac_word; then
  646. ac_cv_prog_CC="$ac_prog"
  647. break
  648. fi
  649. done
  650. IFS="$ac_save_ifs"
  651. fi
  652. fi
  653. CC="$ac_cv_prog_CC"
  654. if test -n "$CC"; then
  655. echo "$ac_t""$CC" 1>&6
  656. else
  657. echo "$ac_t""no" 1>&6
  658. fi
  659. test -n "$CC" && break
  660. done
  661. ;;
  662. HP-UX)
  663. for ac_prog in c89 cc gcc
  664. do
  665. # Extract the first word of "$ac_prog", so it can be a program name with args.
  666. set dummy $ac_prog; ac_word=$2
  667. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  668. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  669. echo $ac_n "(cached) $ac_c" 1>&6
  670. else
  671. if test -n "$CC"; then
  672. ac_cv_prog_CC="$CC" # Let the user override the test.
  673. else
  674. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  675. for ac_dir in $PATH; do
  676. test -z "$ac_dir" && ac_dir=.
  677. if test -f $ac_dir/$ac_word; then
  678. ac_cv_prog_CC="$ac_prog"
  679. break
  680. fi
  681. done
  682. IFS="$ac_save_ifs"
  683. fi
  684. fi
  685. CC="$ac_cv_prog_CC"
  686. if test -n "$CC"; then
  687. echo "$ac_t""$CC" 1>&6
  688. else
  689. echo "$ac_t""no" 1>&6
  690. fi
  691. test -n "$CC" && break
  692. done
  693. ;;
  694. IRIX*)
  695. for ac_prog in cc gcc
  696. do
  697. # Extract the first word of "$ac_prog", so it can be a program name with args.
  698. set dummy $ac_prog; ac_word=$2
  699. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  700. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  701. echo $ac_n "(cached) $ac_c" 1>&6
  702. else
  703. if test -n "$CC"; then
  704. ac_cv_prog_CC="$CC" # Let the user override the test.
  705. else
  706. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  707. for ac_dir in $PATH; do
  708. test -z "$ac_dir" && ac_dir=.
  709. if test -f $ac_dir/$ac_word; then
  710. ac_cv_prog_CC="$ac_prog"
  711. break
  712. fi
  713. done
  714. IFS="$ac_save_ifs"
  715. fi
  716. fi
  717. CC="$ac_cv_prog_CC"
  718. if test -n "$CC"; then
  719. echo "$ac_t""$CC" 1>&6
  720. else
  721. echo "$ac_t""no" 1>&6
  722. fi
  723. test -n "$CC" && break
  724. done
  725. ;;
  726. OSF1|ULTRIX)
  727. for ac_prog in cc gcc
  728. do
  729. # Extract the first word of "$ac_prog", so it can be a program name with args.
  730. set dummy $ac_prog; ac_word=$2
  731. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  732. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  733. echo $ac_n "(cached) $ac_c" 1>&6
  734. else
  735. if test -n "$CC"; then
  736. ac_cv_prog_CC="$CC" # Let the user override the test.
  737. else
  738. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  739. for ac_dir in $PATH; do
  740. test -z "$ac_dir" && ac_dir=.
  741. if test -f $ac_dir/$ac_word; then
  742. ac_cv_prog_CC="$ac_prog"
  743. break
  744. fi
  745. done
  746. IFS="$ac_save_ifs"
  747. fi
  748. fi
  749. CC="$ac_cv_prog_CC"
  750. if test -n "$CC"; then
  751. echo "$ac_t""$CC" 1>&6
  752. else
  753. echo "$ac_t""no" 1>&6
  754. fi
  755. test -n "$CC" && break
  756. done
  757. case "$CC" in
  758. cc)
  759. case `uname -m` in
  760. VAX)
  761. ;;
  762. *)
  763. for arg in -std; do
  764. case "$CPPFLAGS" in
  765. *$arg*)
  766. ;;
  767. *)
  768. CPPFLAGS="${CPPFLAGS-} $arg"
  769. ;;
  770. esac
  771. done
  772. ;;
  773. esac
  774. ;;
  775. esac
  776. ;;
  777. SunOS)
  778. case `uname -r` in
  779. 4*)
  780. for ac_prog in acc cc gcc
  781. do
  782. # Extract the first word of "$ac_prog", so it can be a program name with args.
  783. set dummy $ac_prog; ac_word=$2
  784. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  785. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  786. echo $ac_n "(cached) $ac_c" 1>&6
  787. else
  788. if test -n "$CC"; then
  789. ac_cv_prog_CC="$CC" # Let the user override the test.
  790. else
  791. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  792. for ac_dir in $PATH; do
  793. test -z "$ac_dir" && ac_dir=.
  794. if test -f $ac_dir/$ac_word; then
  795. ac_cv_prog_CC="$ac_prog"
  796. break
  797. fi
  798. done
  799. IFS="$ac_save_ifs"
  800. fi
  801. fi
  802. CC="$ac_cv_prog_CC"
  803. if test -n "$CC"; then
  804. echo "$ac_t""$CC" 1>&6
  805. else
  806. echo "$ac_t""no" 1>&6
  807. fi
  808. test -n "$CC" && break
  809. done
  810. ;;
  811. 5*)
  812. for ac_prog in cc gcc
  813. do
  814. # Extract the first word of "$ac_prog", so it can be a program name with args.
  815. set dummy $ac_prog; ac_word=$2
  816. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  817. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  818. echo $ac_n "(cached) $ac_c" 1>&6
  819. else
  820. if test -n "$CC"; then
  821. ac_cv_prog_CC="$CC" # Let the user override the test.
  822. else
  823. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  824. for ac_dir in $PATH; do
  825. test -z "$ac_dir" && ac_dir=.
  826. if test -f $ac_dir/$ac_word; then
  827. ac_cv_prog_CC="$ac_prog"
  828. break
  829. fi
  830. done
  831. IFS="$ac_save_ifs"
  832. fi
  833. fi
  834. CC="$ac_cv_prog_CC"
  835. if test -n "$CC"; then
  836. echo "$ac_t""$CC" 1>&6
  837. else
  838. echo "$ac_t""no" 1>&6
  839. fi
  840. test -n "$CC" && break
  841. done
  842. #
  843. # The following is commented-out because
  844. # the configure script uses CPPFLAGS when
  845. # compiling C++ source and SunOS 5's CC (at
  846. # least) emits error messages when given the
  847. # -Xa option causing the configure script to
  848. # abandon `$CXX -E' in favor of `/lib/cpp'.
  849. #
  850. # case "$CC" in
  851. # *gcc*)
  852. # ;;
  853. # *)
  854. # UC_ENSURE(CPPFLAGS, -Xa) dnl
  855. # ;;
  856. # esac
  857. ;;
  858. esac
  859. ;;
  860. *)
  861. for ac_prog in c89 cc gcc
  862. do
  863. # Extract the first word of "$ac_prog", so it can be a program name with args.
  864. set dummy $ac_prog; ac_word=$2
  865. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  866. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  867. echo $ac_n "(cached) $ac_c" 1>&6
  868. else
  869. if test -n "$CC"; then
  870. ac_cv_prog_CC="$CC" # Let the user override the test.
  871. else
  872. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  873. for ac_dir in $PATH; do
  874. test -z "$ac_dir" && ac_dir=.
  875. if test -f $ac_dir/$ac_word; then
  876. ac_cv_prog_CC="$ac_prog"
  877. break
  878. fi
  879. done
  880. IFS="$ac_save_ifs"
  881. fi
  882. fi
  883. CC="$ac_cv_prog_CC"
  884. if test -n "$CC"; then
  885. echo "$ac_t""$CC" 1>&6
  886. else
  887. echo "$ac_t""no" 1>&6
  888. fi
  889. test -n "$CC" && break
  890. done
  891. ;;
  892. esac
  893. ;;
  894. *)
  895. echo $ac_n "checking for C compiler""... $ac_c" 1>&6
  896. echo "$ac_t""$CC" 1>&6
  897. ;;
  898. esac
  899. case "${CC-}" in
  900. '')
  901. echo "CC:C compiler:/bin/cc" >> confdefs.missing
  902. ;;
  903. *)
  904. # Find out if we are using GNU C, under whatever name.
  905. cat <<UD_EOF > conftest.c
  906. #ifdef __GNUC__
  907. yes
  908. #endif
  909. UD_EOF
  910. ${CC} -E conftest.c > conftest.out 2>&1
  911. if egrep yes conftest.out >/dev/null 2>&1; then
  912. GCC=1 # For later tests.
  913. fi
  914. case `uname -s` in
  915. AIX)
  916. for arg in -D_ALL_SOURCE; do
  917. case "$CPPFLAGS" in
  918. *$arg*)
  919. ;;
  920. *)
  921. CPPFLAGS="${CPPFLAGS-} $arg"
  922. ;;
  923. esac
  924. done
  925. cat >> confdefs.h <<\EOF
  926. #define _ALL_SOURCE 1
  927. EOF
  928. ;;
  929. HP-UX)
  930. for arg in -D_HPUX_SOURCE; do
  931. case "$CPPFLAGS" in
  932. *$arg*)
  933. ;;
  934. *)
  935. CPPFLAGS="${CPPFLAGS-} $arg"
  936. ;;
  937. esac
  938. done
  939. cat >> confdefs.h <<\EOF
  940. #define _HPUX_SOURCE 1
  941. EOF
  942. ;;
  943. esac
  944. ;;
  945. esac
  946. rm -f conftest*
  947. echo $ac_n "checking for dependency generation mechanism""... $ac_c" 1>&6
  948. if test -z "$CC_MAKEDEPEND"; then
  949. case ${GCC-}${OPSYS} in
  950. convexos)
  951. CC_MAKEDEPEND="$CC -k"
  952. ;;
  953. hpux)
  954. CC_MAKEDEPEND="$CC -c -Wp,-M"
  955. ;;
  956. sunos5)
  957. CC_MAKEDEPEND="$CC -xM"
  958. ;;
  959. unicos)
  960. #
  961. # UNICOS's C compiler has an unusual way of invoking the
  962. # dependency-generation option. Also, the c89(1) compiler
  963. # doesn't even have way of doing this.
  964. #
  965. #
  966. CC_MAKEDEPEND="cc -c -Wp,-M"
  967. ;;
  968. ultrix)
  969. CC_MAKEDEPEND="$CC -Em"
  970. ;;
  971. *)
  972. CC_MAKEDEPEND="$CC -M"
  973. ;;
  974. esac
  975. fi
  976. echo "$ac_t""$CC_MAKEDEPEND" 1>&6
  977. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  978. # On Suns, sometimes $CPP names a directory.
  979. if test -n "$CPP" && test -d "$CPP"; then
  980. CPP=
  981. fi
  982. if test -z "$CPP"; then
  983. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  984. echo $ac_n "(cached) $ac_c" 1>&6
  985. else
  986. # This must be in double quotes, not single quotes, because CPP may get
  987. # substituted into the Makefile and "${CC-cc}" will confuse make.
  988. CPP="${CC-cc} -E"
  989. # On the NeXT, cc -E runs the code through the compiler's parser,
  990. # not just through cpp.
  991. cat > conftest.$ac_ext <<EOF
  992. #line 1099 "configure"
  993. #include "confdefs.h"
  994. #include <assert.h>
  995. Syntax Error
  996. EOF
  997. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  998. { (eval echo configure:1105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  999. ac_err=`grep -v '^ *+' conftest.out`
  1000. if test -z "$ac_err"; then
  1001. :
  1002. else
  1003. echo "$ac_err" >&5
  1004. rm -rf conftest*
  1005. CPP="${CC-cc} -E -traditional-cpp"
  1006. cat > conftest.$ac_ext <<EOF
  1007. #line 1114 "configure"
  1008. #include "confdefs.h"
  1009. #include <assert.h>
  1010. Syntax Error
  1011. EOF
  1012. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1013. { (eval echo configure:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1014. ac_err=`grep -v '^ *+' conftest.out`
  1015. if test -z "$ac_err"; then
  1016. :
  1017. else
  1018. echo "$ac_err" >&5
  1019. rm -rf conftest*
  1020. CPP=/lib/cpp
  1021. fi
  1022. rm -f conftest*
  1023. fi
  1024. rm -f conftest*
  1025. ac_cv_prog_CPP="$CPP"
  1026. fi
  1027. CPP="$ac_cv_prog_CPP"
  1028. else
  1029. ac_cv_prog_CPP="$CPP"
  1030. fi
  1031. echo "$ac_t""$CPP" 1>&6
  1032. echo $ac_n "checking the C preprocessor""... $ac_c" 1>&6
  1033. cat > conftest.$ac_ext <<EOF
  1034. #line 1141 "configure"
  1035. #include "confdefs.h"
  1036. #include <stdlib.h>
  1037. EOF
  1038. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1039. { (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1040. ac_err=`grep -v '^ *+' conftest.out`
  1041. if test -z "$ac_err"; then
  1042. rm -rf conftest*
  1043. echo "$ac_t""works" 1>&6
  1044. else
  1045. echo "$ac_err" >&5
  1046. rm -rf conftest*
  1047. echo "configure: warning: C preprocessor, \`$CPP', doesn't work" 1>&2
  1048. echo "CPP:C preprocessor:/lib/cpp" >> confdefs.missing
  1049. fi
  1050. rm -f conftest*
  1051. echo $ac_n "checking for C const""... $ac_c" 1>&6
  1052. cat > conftest.$ac_ext <<EOF
  1053. #line 1165 "configure"
  1054. #include "confdefs.h"
  1055. int main() { return 0; }
  1056. int t() {
  1057. /* Ultrix mips cc rejects this. */
  1058. typedef int charset[2]; const charset x;
  1059. ; return 0; }
  1060. EOF
  1061. if { (eval echo configure:1175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1062. rm -rf conftest*
  1063. echo "$ac_t""yes" 1>&6
  1064. else
  1065. rm -rf conftest*
  1066. UD_NO_CONST="1"
  1067. cat >> confdefs.h <<\EOF
  1068. #define UD_NO_CONST 1
  1069. EOF
  1070. echo "$ac_t""no" 1>&6
  1071. fi
  1072. rm -f conftest*
  1073. echo $ac_n "checking for C volatile""... $ac_c" 1>&6
  1074. cat > conftest.$ac_ext <<EOF
  1075. #line 1195 "configure"
  1076. #include "confdefs.h"
  1077. int main() { return 0; }
  1078. int t() {
  1079. typedef int charset[2]; volatile charset x;
  1080. ; return 0; }
  1081. EOF
  1082. if { (eval echo configure:1203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1083. rm -rf conftest*
  1084. echo "$ac_t""yes" 1>&6
  1085. else
  1086. rm -rf conftest*
  1087. echo "$ac_t""no" 1>&6
  1088. UD_NO_VOLATILE="1"
  1089. cat >> confdefs.h <<\EOF
  1090. #define UD_NO_VOLATILE 1
  1091. EOF
  1092. fi
  1093. rm -f conftest*
  1094. echo $ac_n "checking for C signed""... $ac_c" 1>&6
  1095. cat > conftest.$ac_ext <<EOF
  1096. #line 1223 "configure"
  1097. #include "confdefs.h"
  1098. int main() { return 0; }
  1099. int t() {
  1100. signed char x;
  1101. ; return 0; }
  1102. EOF
  1103. if { (eval echo configure:1231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1104. rm -rf conftest*
  1105. echo "$ac_t""yes" 1>&6
  1106. else
  1107. rm -rf conftest*
  1108. echo "$ac_t""no" 1>&6
  1109. UD_NO_SIGNED="1"
  1110. cat >> confdefs.h <<\EOF
  1111. #define UD_NO_SIGNED 1
  1112. EOF
  1113. fi
  1114. rm -f conftest*
  1115. echo $ac_n "checking for C function prototypes""... $ac_c" 1>&6
  1116. cat > conftest.$ac_ext <<EOF
  1117. #line 1251 "configure"
  1118. #include "confdefs.h"
  1119. int main() { return 0; }
  1120. int t() {
  1121. extern int foo(int bar);
  1122. ; return 0; }
  1123. EOF
  1124. if { (eval echo configure:1259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1125. rm -rf conftest*
  1126. echo "$ac_t""yes" 1>&6
  1127. else
  1128. rm -rf conftest*
  1129. echo "$ac_t""no" 1>&6
  1130. UD_NO_PROTOTYPES="1"
  1131. cat >> confdefs.h <<\EOF
  1132. #define UD_NO_PROTOTYPES 1
  1133. EOF
  1134. fi
  1135. rm -f conftest*
  1136. for arg in stdarg.h.in; do
  1137. case "$PORT_MANIFEST" in
  1138. *$arg*)
  1139. ;;
  1140. *)
  1141. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  1142. ;;
  1143. esac
  1144. done
  1145. echo $ac_n "checking for standard C variadic functions""... $ac_c" 1>&6
  1146. cat > conftest.$ac_ext <<EOF
  1147. #line 1288 "configure"
  1148. #include "confdefs.h"
  1149. #include <stdarg.h>
  1150. int main() { return 0; }
  1151. int t() {
  1152. }
  1153. int foo(int bar, ...) {
  1154. va_list alist;
  1155. va_start(alist, bar);
  1156. bar = (int)va_arg(alist, int);
  1157. va_end(alist);
  1158. ; return 0; }
  1159. EOF
  1160. if { (eval echo configure:1303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1161. rm -rf conftest*
  1162. echo "$ac_t""yes" 1>&6
  1163. echo "#include <stdarg.h>" > conftestpath.c
  1164. #
  1165. # We add additional `/'s to the header file name to preclude compiler
  1166. # warnings about the non-portability of `#include "/usr/include/..."'.
  1167. #
  1168. case `uname -s`${GCC-} in
  1169. AIX)
  1170. #
  1171. # AIX's C compiler doesn't emit a line that gives the pathname of
  1172. # the included file.
  1173. #
  1174. # AIX's C compiler puts dependency information in a `.u' file.
  1175. #
  1176. # AIX 4.1's cc(1) makes the following complaint:
  1177. # ld: 0711-317 ERROR: Undefined symbol: .main
  1178. #
  1179. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  1180. # /dev/null.
  1181. #
  1182. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  1183. path=`sed -n '/[^\/]*\(\/[^ ]*stdarg\.h\).*/s//\1/p' \
  1184. conftestpath.u | head -1`
  1185. rm conftestpath.u
  1186. ;;
  1187. HP-UX)
  1188. #
  1189. # HP-UX's C compiler doesn't have a dependency-generation option,
  1190. # so we use another method.
  1191. #
  1192. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  1193. sed -n '/[^\/]*\(\/[^ ]*stdarg\.h\).*/s//\1/p' |
  1194. head -1`
  1195. ;;
  1196. *)
  1197. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  1198. sed -n '/[^\/]*\(\/[^ ]*stdarg\.h\).*/s//\1/p' |
  1199. head -1`
  1200. ;;
  1201. esac
  1202. case "$path" in
  1203. '')
  1204. path=/dev/null
  1205. ;;
  1206. *)
  1207. path=//$path
  1208. ;;
  1209. esac
  1210. cat >> confdefs.h <<EOF
  1211. #define UD_SYSTEM_STDARG_H "$path"
  1212. EOF
  1213. for arg in misc; do
  1214. case "$PORT_SUBDIRS" in
  1215. *$arg*)
  1216. ;;
  1217. *)
  1218. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  1219. ;;
  1220. esac
  1221. done
  1222. else
  1223. rm -rf conftest*
  1224. echo "$ac_t""no" 1>&6
  1225. cat >> confdefs.h <<\EOF
  1226. #define UD_NO_STDARG 1
  1227. EOF
  1228. echo "#include <varargs.h>" > conftestpath.c
  1229. #
  1230. # We add additional `/'s to the header file name to preclude compiler
  1231. # warnings about the non-portability of `#include "/usr/include/..."'.
  1232. #
  1233. case `uname -s`${GCC-} in
  1234. AIX)
  1235. #
  1236. # AIX's C compiler doesn't emit a line that gives the pathname of
  1237. # the included file.
  1238. #
  1239. # AIX's C compiler puts dependency information in a `.u' file.
  1240. #
  1241. # AIX 4.1's cc(1) makes the following complaint:
  1242. # ld: 0711-317 ERROR: Undefined symbol: .main
  1243. #
  1244. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  1245. # /dev/null.
  1246. #
  1247. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  1248. path=`sed -n '/[^\/]*\(\/[^ ]*varargs\.h\).*/s//\1/p' \
  1249. conftestpath.u | head -1`
  1250. rm conftestpath.u
  1251. ;;
  1252. HP-UX)
  1253. #
  1254. # HP-UX's C compiler doesn't have a dependency-generation option,
  1255. # so we use another method.
  1256. #
  1257. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  1258. sed -n '/[^\/]*\(\/[^ ]*varargs\.h\).*/s//\1/p' |
  1259. head -1`
  1260. ;;
  1261. *)
  1262. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  1263. sed -n '/[^\/]*\(\/[^ ]*varargs\.h\).*/s//\1/p' |
  1264. head -1`
  1265. ;;
  1266. esac
  1267. case "$path" in
  1268. '')
  1269. path=/dev/null
  1270. ;;
  1271. *)
  1272. path=//$path
  1273. ;;
  1274. esac
  1275. cat >> confdefs.h <<EOF
  1276. #define UD_SYSTEM_STDARG_H "$path"
  1277. EOF
  1278. for arg in misc; do
  1279. case "$PORT_SUBDIRS" in
  1280. *$arg*)
  1281. ;;
  1282. *)
  1283. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  1284. ;;
  1285. esac
  1286. done
  1287. fi
  1288. rm -f conftest*
  1289. echo $ac_n "checking for standard C string generation""... $ac_c" 1>&6
  1290. cat > conftest.$ac_ext <<EOF
  1291. #line 1447 "configure"
  1292. #include "confdefs.h"
  1293. # define MAKESTRING(x) #x
  1294. int main() { return 0; }
  1295. int t() {
  1296. char *cp = MAKESTRING(foo);
  1297. ; return 0; }
  1298. EOF
  1299. if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1300. rm -rf conftest*
  1301. echo "$ac_t""yes" 1>&6
  1302. else
  1303. rm -rf conftest*
  1304. echo "$ac_t""no" 1>&6
  1305. UD_NO_HASH="1"
  1306. cat >> confdefs.h <<\EOF
  1307. #define UD_NO_HASH 1
  1308. EOF
  1309. fi
  1310. rm -f conftest*
  1311. echo $ac_n "checking for standard C token pasting""... $ac_c" 1>&6
  1312. cat > conftest.$ac_ext <<EOF
  1313. #line 1475 "configure"
  1314. #include "confdefs.h"
  1315. #define GLUE(a,b) a ## b
  1316. int main() { return 0; }
  1317. int t() {
  1318. char *GLUE(c,p) = "foo";
  1319. ; return 0; }
  1320. EOF
  1321. if { (eval echo configure:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1322. rm -rf conftest*
  1323. echo "$ac_t""yes" 1>&6
  1324. else
  1325. rm -rf conftest*
  1326. echo "$ac_t""no" 1>&6
  1327. UD_NO_HASHHASH="1"
  1328. cat >> confdefs.h <<\EOF
  1329. #define UD_NO_HASHHASH 1
  1330. EOF
  1331. fi
  1332. rm -f conftest*
  1333. echo $ac_n "checking C void pointer""... $ac_c" 1>&6
  1334. cat > conftest.$ac_ext <<EOF
  1335. #line 1504 "configure"
  1336. #include "confdefs.h"
  1337. int main() { return 0; }
  1338. int t() {
  1339. extern void *foo();
  1340. ; return 0; }
  1341. EOF
  1342. if { (eval echo configure:1512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1343. rm -rf conftest*
  1344. echo "$ac_t""yes" 1>&6
  1345. else
  1346. rm -rf conftest*
  1347. echo "$ac_t""no" 1>&6
  1348. UD_NO_VOIDSTAR="1"
  1349. cat >> confdefs.h <<\EOF
  1350. #define UD_NO_VOIDSTAR 1
  1351. EOF
  1352. fi
  1353. rm -f conftest*
  1354. for arg in udposix.h.in; do
  1355. case "$PORT_MANIFEST" in
  1356. *$arg*)
  1357. ;;
  1358. *)
  1359. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  1360. ;;
  1361. esac
  1362. done
  1363. # We use ar(1) under UNICOS even though bld(1) is preferred because bld(1)
  1364. # doesn't understand the "u" option.
  1365. # Extract the first word of "ar", so it can be a program name with args.
  1366. set dummy ar; ac_word=$2
  1367. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1368. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  1369. echo $ac_n "(cached) $ac_c" 1>&6
  1370. else
  1371. if test -n "$AR"; then
  1372. ac_cv_prog_AR="$AR" # Let the user override the test.
  1373. else
  1374. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1375. for ac_dir in $PATH; do
  1376. test -z "$ac_dir" && ac_dir=.
  1377. if test -f $ac_dir/$ac_word; then
  1378. ac_cv_prog_AR="ar"
  1379. break
  1380. fi
  1381. done
  1382. IFS="$ac_save_ifs"
  1383. fi
  1384. fi
  1385. AR="$ac_cv_prog_AR"
  1386. if test -n "$AR"; then
  1387. echo "$ac_t""$AR" 1>&6
  1388. else
  1389. echo "$ac_t""no" 1>&6
  1390. fi
  1391. if test -z "$AR"; then
  1392. echo "AR:library utility:/bin/ar" >> confdefs.missing
  1393. fi
  1394. echo $ac_n "checking for tar flags""... $ac_c" 1>&6
  1395. case "$OPSYS" in
  1396. aix*)
  1397. TARFLAGS=-chf
  1398. ;;
  1399. bsdos|irix*)
  1400. TARFLAGS=-cLof
  1401. ;;
  1402. *)
  1403. TARFLAGS=-chof
  1404. ;;
  1405. esac
  1406. echo "$ac_t""$TARFLAGS" 1>&6
  1407. # Extract the first word of "ranlib", so it can be a program name with args.
  1408. set dummy ranlib; ac_word=$2
  1409. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1410. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1411. echo $ac_n "(cached) $ac_c" 1>&6
  1412. else
  1413. if test -n "$RANLIB"; then
  1414. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1415. else
  1416. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1417. for ac_dir in $PATH; do
  1418. test -z "$ac_dir" && ac_dir=.
  1419. if test -f $ac_dir/$ac_word; then
  1420. ac_cv_prog_RANLIB="ranlib"
  1421. break
  1422. fi
  1423. done
  1424. IFS="$ac_save_ifs"
  1425. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1426. fi
  1427. fi
  1428. RANLIB="$ac_cv_prog_RANLIB"
  1429. if test -n "$RANLIB"; then
  1430. echo "$ac_t""$RANLIB" 1>&6
  1431. else
  1432. echo "$ac_t""no" 1>&6
  1433. fi
  1434. echo $ac_n "checking binary distribution directory""... $ac_c" 1>&6
  1435. case ${FTPBINDIR-unset} in
  1436. unset)
  1437. system=`system 2>/dev/null || echo dummy_system`
  1438. FTPBINDIR=${FTPDIR-/home/ftp}/pub/binary/$system
  1439. ;;
  1440. esac
  1441. echo "$ac_t""$FTPBINDIR" 1>&6
  1442. for arg in port/Makefile; do
  1443. case "$CONFIG_FILES" in
  1444. *$arg*)
  1445. ;;
  1446. *)
  1447. CONFIG_FILES="${CONFIG_FILES-} $arg"
  1448. ;;
  1449. esac
  1450. done
  1451. for arg in port/master.mk; do
  1452. case "$CONFIG_FILES" in
  1453. *$arg*)
  1454. ;;
  1455. *)
  1456. CONFIG_FILES="${CONFIG_FILES-} $arg"
  1457. ;;
  1458. esac
  1459. done
  1460. for arg in port/misc/Makefile; do
  1461. case "$CONFIG_FILES" in
  1462. *$arg*)
  1463. ;;
  1464. *)
  1465. CONFIG_FILES="${CONFIG_FILES-} $arg"
  1466. ;;
  1467. esac
  1468. done
  1469. LIBOBJS=${LIBOBJS-""}
  1470. PORT_HEADERS=${PORT_HEADERS-""}
  1471. PORT_MANIFEST=${PORT_MANIFEST-""}
  1472. PORT_SUBDIRS=${PORT_SUBDIRS-""}
  1473. for arg in misc/all; do
  1474. case "$PORT_ALL" in
  1475. *$arg*)
  1476. ;;
  1477. *)
  1478. PORT_ALL="${PORT_ALL-} $arg"
  1479. ;;
  1480. esac
  1481. done
  1482. for arg in misc/install; do
  1483. case "$PORT_INSTALL" in
  1484. *$arg*)
  1485. ;;
  1486. *)
  1487. PORT_INSTALL="${PORT_INSTALL-} $arg"
  1488. ;;
  1489. esac
  1490. done
  1491. for arg in misc/clean; do
  1492. case "$PORT_CLEAN" in
  1493. *$arg*)
  1494. ;;
  1495. *)
  1496. PORT_CLEAN="${PORT_CLEAN-} $arg"
  1497. ;;
  1498. esac
  1499. done
  1500. for arg in misc/distclean; do
  1501. case "$PORT_DISTCLEAN" in
  1502. *$arg*)
  1503. ;;
  1504. *)
  1505. PORT_DISTCLEAN="${PORT_DISTCLEAN-} $arg"
  1506. ;;
  1507. esac
  1508. done
  1509. PORT_CPP_LDM=${PORT_CPP_LDM-""}
  1510. udportdir=`pwd`/port/misc
  1511. case "${OPSYS}$OS_MAJOR" in
  1512. unicos*)
  1513. case "$udportdir" in
  1514. '') LD_UDPORT="-l udport";;
  1515. *) LD_UDPORT="-L $udportdir -l udport";;
  1516. esac
  1517. ;;
  1518. sunos5*)
  1519. case "$udportdir" in
  1520. '') LD_UDPORT="-ludport";;
  1521. *) LD_UDPORT="-R$udportdir -L$udportdir -ludport";;
  1522. esac
  1523. ;;
  1524. *)
  1525. case "$udportdir" in
  1526. '') LD_UDPORT="-ludport";;
  1527. *) LD_UDPORT="-L$udportdir -ludport";;
  1528. esac
  1529. ;;
  1530. esac
  1531. unset udportdir
  1532. for arg in udalloc.c udalloc.h; do
  1533. case "$PORT_MANIFEST" in
  1534. *$arg*)
  1535. ;;
  1536. *)
  1537. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  1538. ;;
  1539. esac
  1540. done
  1541. echo $ac_n "checking the installation prefix""... $ac_c" 1>&6
  1542. case ${prefix-} in
  1543. NONE|'') prefix=`case ".." in
  1544. /*) echo ..; exit;;
  1545. *) path=\`pwd\`/..
  1546. tail=
  1547. while test "$path"; do
  1548. (cd $path && echo \`pwd\`$rest) && exit
  1549. base=/\`basename "$path"\`
  1550. tail=/$base$tail
  1551. path=\`echo "$path" | sed "s/\/$base//"\`
  1552. done;;
  1553. esac
  1554. `;;
  1555. esac
  1556. echo "$ac_t""$prefix" 1>&6
  1557. echo $ac_n "checking the installation exec-prefix""... $ac_c" 1>&6
  1558. case ${exec_prefix-} in
  1559. NONE|'')
  1560. exec_prefix=$prefix;;
  1561. esac
  1562. echo "$ac_t""$exec_prefix" 1>&6
  1563. CFLAGS=${CFLAGS-"-O"}
  1564. CPPFLAGS=${CPPFLAGS-""}
  1565. # Extract the first word of "neqn", so it can be a program name with args.
  1566. set dummy neqn; ac_word=$2
  1567. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1568. if eval "test \"`echo '$''{'ac_cv_prog_NEQN'+set}'`\" = set"; then
  1569. echo $ac_n "(cached) $ac_c" 1>&6
  1570. else
  1571. if test -n "$NEQN"; then
  1572. ac_cv_prog_NEQN="$NEQN" # Let the user override the test.
  1573. else
  1574. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1575. for ac_dir in $PATH; do
  1576. test -z "$ac_dir" && ac_dir=.
  1577. if test -f $ac_dir/$ac_word; then
  1578. ac_cv_prog_NEQN="neqn"
  1579. break
  1580. fi
  1581. done
  1582. IFS="$ac_save_ifs"
  1583. test -z "$ac_cv_prog_NEQN" && ac_cv_prog_NEQN="cat"
  1584. fi
  1585. fi
  1586. NEQN="$ac_cv_prog_NEQN"
  1587. if test -n "$NEQN"; then
  1588. echo "$ac_t""$NEQN" 1>&6
  1589. else
  1590. echo "$ac_t""no" 1>&6
  1591. fi
  1592. test "$NEQN" = cat &&
  1593. echo "configure: warning: $0: Can't find program \`neqn'; setting to \`cat'" 1>&2
  1594. # Extract the first word of "tbl", so it can be a program name with args.
  1595. set dummy tbl; ac_word=$2
  1596. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1597. if eval "test \"`echo '$''{'ac_cv_prog_TBL'+set}'`\" = set"; then
  1598. echo $ac_n "(cached) $ac_c" 1>&6
  1599. else
  1600. if test -n "$TBL"; then
  1601. ac_cv_prog_TBL="$TBL" # Let the user override the test.
  1602. else
  1603. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1604. for ac_dir in $PATH; do
  1605. test -z "$ac_dir" && ac_dir=.
  1606. if test -f $ac_dir/$ac_word; then
  1607. ac_cv_prog_TBL="tbl"
  1608. break
  1609. fi
  1610. done
  1611. IFS="$ac_save_ifs"
  1612. test -z "$ac_cv_prog_TBL" && ac_cv_prog_TBL="cat"
  1613. fi
  1614. fi
  1615. TBL="$ac_cv_prog_TBL"
  1616. if test -n "$TBL"; then
  1617. echo "$ac_t""$TBL" 1>&6
  1618. else
  1619. echo "$ac_t""no" 1>&6
  1620. fi
  1621. test "$TBL" = cat &&
  1622. echo "configure: warning: $0: Can't find program \`tbl'; setting to \`cat'" 1>&2
  1623. # We use ar(1) under UNICOS even though bld(1) is preferred because bld(1)
  1624. # doesn't understand the "u" option.
  1625. # Extract the first word of "ar", so it can be a program name with args.
  1626. set dummy ar; ac_word=$2
  1627. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1628. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  1629. echo $ac_n "(cached) $ac_c" 1>&6
  1630. else
  1631. if test -n "$AR"; then
  1632. ac_cv_prog_AR="$AR" # Let the user override the test.
  1633. else
  1634. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1635. for ac_dir in $PATH; do
  1636. test -z "$ac_dir" && ac_dir=.
  1637. if test -f $ac_dir/$ac_word; then
  1638. ac_cv_prog_AR="ar"
  1639. break
  1640. fi
  1641. done
  1642. IFS="$ac_save_ifs"
  1643. fi
  1644. fi
  1645. AR="$ac_cv_prog_AR"
  1646. if test -n "$AR"; then
  1647. echo "$ac_t""$AR" 1>&6
  1648. else
  1649. echo "$ac_t""no" 1>&6
  1650. fi
  1651. if test -z "$AR"; then
  1652. echo "AR:library utility:/bin/ar" >> confdefs.missing
  1653. fi
  1654. libdir=`pwd`/lib
  1655. case "${OPSYS}$OS_MAJOR" in
  1656. unicos*)
  1657. case "$libdir" in
  1658. '') LD_UDUNITS="-l udunits";;
  1659. *) LD_UDUNITS="-L $libdir -l udunits";;
  1660. esac
  1661. ;;
  1662. sunos5*)
  1663. case "$libdir" in
  1664. '') LD_UDUNITS="-ludunits";;
  1665. *) LD_UDUNITS="-R$libdir -L$libdir -ludunits";;
  1666. esac
  1667. ;;
  1668. *)
  1669. case "$libdir" in
  1670. '') LD_UDUNITS="-ludunits";;
  1671. *) LD_UDUNITS="-L$libdir -ludunits";;
  1672. esac
  1673. ;;
  1674. esac
  1675. case `uname` in
  1676. Linux)
  1677. LD_YACC=${LD_YACC-""}
  1678. ;;
  1679. *) echo $ac_n "checking for yacc library""... $ac_c" 1>&6
  1680. case "${LD_YACC+set}" in
  1681. set)
  1682. echo "$ac_t""$LD_YACC" 1>&6
  1683. ;;
  1684. *)
  1685. echo "$ac_t""" 1>&6
  1686. LIBS_save=$LIBS
  1687. found=no
  1688. echo $ac_n "checking for yyerror("") in default library(s)""... $ac_c" 1>&6
  1689. cat > conftest.$ac_ext <<EOF
  1690. #line 1920 "configure"
  1691. #include "confdefs.h"
  1692. int main() { return 0; }
  1693. int t() {
  1694. yyerror("");
  1695. ; return 0; }
  1696. EOF
  1697. if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1698. rm -rf conftest*
  1699. echo "$ac_t""yes" 1>&6
  1700. LD_YACC=
  1701. found=yes
  1702. else
  1703. rm -rf conftest*
  1704. echo "$ac_t""no" 1>&6
  1705. os=`uname -s`
  1706. for dir in '' ; do
  1707. for lib in y; do
  1708. case "${OPSYS}$OS_MAJOR" in
  1709. unicos*)
  1710. case "$dir" in
  1711. '') LIBS="-l $lib";;
  1712. *) LIBS="-L $dir -l $lib";;
  1713. esac
  1714. ;;
  1715. sunos5*)
  1716. case "$dir" in
  1717. '') LIBS="-l$lib";;
  1718. *) LIBS="-R$dir -L$dir -l$lib";;
  1719. esac
  1720. ;;
  1721. *)
  1722. case "$dir" in
  1723. '') LIBS="-l$lib";;
  1724. *) LIBS="-L$dir -l$lib";;
  1725. esac
  1726. ;;
  1727. esac
  1728. echo $ac_n "checking for yyerror("") in $LIBS""... $ac_c" 1>&6
  1729. cat > conftest.$ac_ext <<EOF
  1730. #line 1965 "configure"
  1731. #include "confdefs.h"
  1732. int main() { return 0; }
  1733. int t() {
  1734. yyerror("");
  1735. ; return 0; }
  1736. EOF
  1737. if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1738. rm -rf conftest*
  1739. echo "$ac_t""yes" 1>&6
  1740. LD_YACC=$LIBS
  1741. found=yes
  1742. break 2
  1743. fi
  1744. rm -f conftest*
  1745. echo "$ac_t""no" 1>&6
  1746. done
  1747. done
  1748. fi
  1749. rm -f conftest*
  1750. LIBS=$LIBS_save
  1751. case $found in
  1752. no) echo "LD_YACC:yacc library:-ly" >> confdefs.missing
  1753. ;;
  1754. esac
  1755. ;;
  1756. esac
  1757. ;;
  1758. esac
  1759. echo $ac_n "checking for C math library""... $ac_c" 1>&6
  1760. case "${LD_MATH+set}" in
  1761. set)
  1762. echo "$ac_t""$LD_MATH" 1>&6
  1763. ;;
  1764. *)
  1765. echo "$ac_t""" 1>&6
  1766. LIBS_save=$LIBS
  1767. found=no
  1768. echo $ac_n "checking for (void)sin(0.0) in default library(s)""... $ac_c" 1>&6
  1769. cat > conftest.$ac_ext <<EOF
  1770. #line 2010 "configure"
  1771. #include "confdefs.h"
  1772. int main() { return 0; }
  1773. int t() {
  1774. (void)sin(0.0);
  1775. ; return 0; }
  1776. EOF
  1777. if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1778. rm -rf conftest*
  1779. echo "$ac_t""yes" 1>&6
  1780. LD_MATH=
  1781. found=yes
  1782. else
  1783. rm -rf conftest*
  1784. echo "$ac_t""no" 1>&6
  1785. os=`uname -s`
  1786. for dir in '' ; do
  1787. for lib in m; do
  1788. case "${OPSYS}$OS_MAJOR" in
  1789. unicos*)
  1790. case "$dir" in
  1791. '') LIBS="-l $lib";;
  1792. *) LIBS="-L $dir -l $lib";;
  1793. esac
  1794. ;;
  1795. sunos5*)
  1796. case "$dir" in
  1797. '') LIBS="-l$lib";;
  1798. *) LIBS="-R$dir -L$dir -l$lib";;
  1799. esac
  1800. ;;
  1801. *)
  1802. case "$dir" in
  1803. '') LIBS="-l$lib";;
  1804. *) LIBS="-L$dir -l$lib";;
  1805. esac
  1806. ;;
  1807. esac
  1808. echo $ac_n "checking for (void)sin(0.0) in $LIBS""... $ac_c" 1>&6
  1809. cat > conftest.$ac_ext <<EOF
  1810. #line 2055 "configure"
  1811. #include "confdefs.h"
  1812. int main() { return 0; }
  1813. int t() {
  1814. (void)sin(0.0);
  1815. ; return 0; }
  1816. EOF
  1817. if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1818. rm -rf conftest*
  1819. echo "$ac_t""yes" 1>&6
  1820. LD_MATH=$LIBS
  1821. found=yes
  1822. break 2
  1823. fi
  1824. rm -f conftest*
  1825. echo "$ac_t""no" 1>&6
  1826. done
  1827. done
  1828. fi
  1829. rm -f conftest*
  1830. LIBS=$LIBS_save
  1831. case $found in
  1832. no) echo "LD_MATH:C math library:-L/opt/SUNWspro/SC3.0/lib -lm" >> confdefs.missing
  1833. ;;
  1834. esac
  1835. ;;
  1836. esac
  1837. for arg in port/cfortran/Makefile; do
  1838. case "$CONFIG_FILES" in
  1839. *$arg*)
  1840. ;;
  1841. *)
  1842. CONFIG_FILES="${CONFIG_FILES-} $arg"
  1843. ;;
  1844. esac
  1845. done
  1846. echo $ac_n "checking style for cfortran.h""... $ac_c" 1>&6
  1847. for arg in cfortran; do
  1848. case "$PORT_SUBDIRS" in
  1849. *$arg*)
  1850. ;;
  1851. *)
  1852. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  1853. ;;
  1854. esac
  1855. done
  1856. for arg in cfortran/all; do
  1857. case "$PORT_ALL" in
  1858. *$arg*)
  1859. ;;
  1860. *)
  1861. PORT_ALL="${PORT_ALL-} $arg"
  1862. ;;
  1863. esac
  1864. done
  1865. for arg in cfortran/install; do
  1866. case "$PORT_INSTALL" in
  1867. *$arg*)
  1868. ;;
  1869. *)
  1870. PORT_INSTALL="${PORT_INSTALL-} $arg"
  1871. ;;
  1872. esac
  1873. done
  1874. for arg in cfortran/clean; do
  1875. case "$PORT_CLEAN" in
  1876. *$arg*)
  1877. ;;
  1878. *)
  1879. PORT_CLEAN="${PORT_CLEAN-} $arg"
  1880. ;;
  1881. esac
  1882. done
  1883. for arg in cfortran/distclean; do
  1884. case "$PORT_DISTCLEAN" in
  1885. *$arg*)
  1886. ;;
  1887. *)
  1888. PORT_DISTCLEAN="${PORT_DISTCLEAN-} $arg"
  1889. ;;
  1890. esac
  1891. done
  1892. case "${UD_NO_HASHHASH-}" in
  1893. 1) CFORTRAN_TYPE=Reiser
  1894. ;;
  1895. *) CFORTRAN_TYPE=Standard
  1896. ;;
  1897. esac
  1898. echo "$ac_t""$CFORTRAN_TYPE" 1>&6
  1899. case "$OPSYS" in
  1900. aix*)
  1901. # Ensure adherence to the trailing-underscore convention.
  1902. for arg in -Dextname; do
  1903. case "$CPPFLAGS" in
  1904. *$arg*)
  1905. ;;
  1906. *)
  1907. CPPFLAGS="${CPPFLAGS-} $arg"
  1908. ;;
  1909. esac
  1910. done
  1911. for arg in -qextname; do
  1912. case "$FFLAGS" in
  1913. *$arg*)
  1914. ;;
  1915. *)
  1916. FFLAGS="${FFLAGS-} $arg"
  1917. ;;
  1918. esac
  1919. done
  1920. ;;
  1921. hp*)
  1922. # Ensure adherence to the trailing-underscore convention.
  1923. for arg in -Dextname; do
  1924. case "$CPPFLAGS" in
  1925. *$arg*)
  1926. ;;
  1927. *)
  1928. CPPFLAGS="${CPPFLAGS-} $arg"
  1929. ;;
  1930. esac
  1931. done
  1932. for arg in +ppu; do
  1933. case "$FFLAGS" in
  1934. *$arg*)
  1935. ;;
  1936. *)
  1937. FFLAGS="${FFLAGS-} $arg"
  1938. ;;
  1939. esac
  1940. done
  1941. ;;
  1942. esac
  1943. for arg in stddef.h.in; do
  1944. case "$PORT_MANIFEST" in
  1945. *$arg*)
  1946. ;;
  1947. *)
  1948. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  1949. ;;
  1950. esac
  1951. done
  1952. for arg in misc; do
  1953. case "$PORT_SUBDIRS" in
  1954. *$arg*)
  1955. ;;
  1956. *)
  1957. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  1958. ;;
  1959. esac
  1960. done
  1961. echo "#include <stddef.h>" > conftestpath.c
  1962. #
  1963. # We add additional `/'s to the header file name to preclude compiler
  1964. # warnings about the non-portability of `#include "/usr/include/..."'.
  1965. #
  1966. case `uname -s`${GCC-} in
  1967. AIX)
  1968. #
  1969. # AIX's C compiler doesn't emit a line that gives the pathname of
  1970. # the included file.
  1971. #
  1972. # AIX's C compiler puts dependency information in a `.u' file.
  1973. #
  1974. # AIX 4.1's cc(1) makes the following complaint:
  1975. # ld: 0711-317 ERROR: Undefined symbol: .main
  1976. #
  1977. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  1978. # /dev/null.
  1979. #
  1980. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  1981. path=`sed -n '/[^\/]*\(\/[^ ]*stddef\.h\).*/s//\1/p' \
  1982. conftestpath.u | head -1`
  1983. rm conftestpath.u
  1984. ;;
  1985. HP-UX)
  1986. #
  1987. # HP-UX's C compiler doesn't have a dependency-generation option,
  1988. # so we use another method.
  1989. #
  1990. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  1991. sed -n '/[^\/]*\(\/[^ ]*stddef\.h\).*/s//\1/p' |
  1992. head -1`
  1993. ;;
  1994. *)
  1995. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  1996. sed -n '/[^\/]*\(\/[^ ]*stddef\.h\).*/s//\1/p' |
  1997. head -1`
  1998. ;;
  1999. esac
  2000. case "$path" in
  2001. '')
  2002. path=/dev/null
  2003. ;;
  2004. *)
  2005. path=//$path
  2006. ;;
  2007. esac
  2008. cat >> confdefs.h <<EOF
  2009. #define UD_SYSTEM_STDDEF_H "$path"
  2010. EOF
  2011. for arg in misc; do
  2012. case "$PORT_SUBDIRS" in
  2013. *$arg*)
  2014. ;;
  2015. *)
  2016. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  2017. ;;
  2018. esac
  2019. done
  2020. ac_safe=`echo "stddef.h" | tr './\055' '___'`
  2021. echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
  2022. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2023. echo $ac_n "(cached) $ac_c" 1>&6
  2024. else
  2025. cat > conftest.$ac_ext <<EOF
  2026. #line 2283 "configure"
  2027. #include "confdefs.h"
  2028. #include <stddef.h>
  2029. EOF
  2030. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2031. { (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2032. ac_err=`grep -v '^ *+' conftest.out`
  2033. if test -z "$ac_err"; then
  2034. rm -rf conftest*
  2035. eval "ac_cv_header_$ac_safe=yes"
  2036. else
  2037. echo "$ac_err" >&5
  2038. rm -rf conftest*
  2039. eval "ac_cv_header_$ac_safe=no"
  2040. fi
  2041. rm -f conftest*
  2042. fi
  2043. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2044. echo "$ac_t""yes" 1>&6
  2045. echo $ac_n "checking C header file <stddef.h> for typedef size_t""... $ac_c" 1>&6
  2046. echo '#include <stddef.h>' >conftest.c
  2047. if ($CPP conftest.c | grep size_t >/dev/null) 2>&5; then
  2048. echo "$ac_t""declared" 1>&6
  2049. rm conftest.c
  2050. else
  2051. cat > conftest.$ac_ext <<EOF
  2052. #line 2309 "configure"
  2053. #include "confdefs.h"
  2054. #include <stddef.h>
  2055. int size_t;
  2056. int main() { return 0; }
  2057. int t() {
  2058. ; return 0; }
  2059. EOF
  2060. if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2061. rm -rf conftest*
  2062. echo "$ac_t""undeclared" 1>&6
  2063. cat >> confdefs.h <<\EOF
  2064. #define UD_NO_STDDEF_H_SIZE_T 1
  2065. EOF
  2066. else
  2067. rm -rf conftest*
  2068. echo "$ac_t""declared" 1>&6
  2069. fi
  2070. rm -f conftest*
  2071. fi
  2072. else
  2073. echo "$ac_t""no" 1>&6
  2074. cat >> confdefs.h <<\EOF
  2075. #define UD_NO_STDDEF_H_SIZE_T 1
  2076. EOF
  2077. fi
  2078. ac_safe=`echo "stddef.h" | tr './\055' '___'`
  2079. echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
  2080. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2081. echo $ac_n "(cached) $ac_c" 1>&6
  2082. else
  2083. cat > conftest.$ac_ext <<EOF
  2084. #line 2349 "configure"
  2085. #include "confdefs.h"
  2086. #include <stddef.h>
  2087. EOF
  2088. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2089. { (eval echo configure:2354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2090. ac_err=`grep -v '^ *+' conftest.out`
  2091. if test -z "$ac_err"; then
  2092. rm -rf conftest*
  2093. eval "ac_cv_header_$ac_safe=yes"
  2094. else
  2095. echo "$ac_err" >&5
  2096. rm -rf conftest*
  2097. eval "ac_cv_header_$ac_safe=no"
  2098. fi
  2099. rm -f conftest*
  2100. fi
  2101. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2102. echo "$ac_t""yes" 1>&6
  2103. echo $ac_n "checking C header file <stddef.h> for typedef ptrdiff_t""... $ac_c" 1>&6
  2104. echo '#include <stddef.h>' >conftest.c
  2105. if ($CPP conftest.c | grep ptrdiff_t >/dev/null) 2>&5; then
  2106. echo "$ac_t""declared" 1>&6
  2107. rm conftest.c
  2108. else
  2109. cat > conftest.$ac_ext <<EOF
  2110. #line 2375 "configure"
  2111. #include "confdefs.h"
  2112. #include <stddef.h>
  2113. int ptrdiff_t;
  2114. int main() { return 0; }
  2115. int t() {
  2116. ; return 0; }
  2117. EOF
  2118. if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2119. rm -rf conftest*
  2120. echo "$ac_t""undeclared" 1>&6
  2121. cat >> confdefs.h <<\EOF
  2122. #define UD_NO_STDDEF_H_PTRDIFF_T 1
  2123. EOF
  2124. else
  2125. rm -rf conftest*
  2126. echo "$ac_t""declared" 1>&6
  2127. fi
  2128. rm -f conftest*
  2129. fi
  2130. else
  2131. echo "$ac_t""no" 1>&6
  2132. cat >> confdefs.h <<\EOF
  2133. #define UD_NO_STDDEF_H_PTRDIFF_T 1
  2134. EOF
  2135. fi
  2136. for arg in config.c; do
  2137. case "$PORT_MANIFEST" in
  2138. *$arg*)
  2139. ;;
  2140. *)
  2141. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  2142. ;;
  2143. esac
  2144. done
  2145. ac_safe=`echo "float.h" | tr './\055' '___'`
  2146. echo $ac_n "checking for float.h""... $ac_c" 1>&6
  2147. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2148. echo $ac_n "(cached) $ac_c" 1>&6
  2149. else
  2150. cat > conftest.$ac_ext <<EOF
  2151. #line 2425 "configure"
  2152. #include "confdefs.h"
  2153. #include <float.h>
  2154. EOF
  2155. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2156. { (eval echo configure:2430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2157. ac_err=`grep -v '^ *+' conftest.out`
  2158. if test -z "$ac_err"; then
  2159. rm -rf conftest*
  2160. eval "ac_cv_header_$ac_safe=yes"
  2161. else
  2162. echo "$ac_err" >&5
  2163. rm -rf conftest*
  2164. eval "ac_cv_header_$ac_safe=no"
  2165. fi
  2166. rm -f conftest*
  2167. fi
  2168. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2169. echo "$ac_t""yes" 1>&6
  2170. cat > conftest.$ac_ext <<EOF
  2171. #line 2445 "configure"
  2172. #include "confdefs.h"
  2173. #include <float.h>
  2174. #ifdef DBL_DIG
  2175. #include "DBL_DIG is defined" /* hard error in case warnings suppressed*/
  2176. #endif
  2177. EOF
  2178. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2179. { (eval echo configure:2455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2180. ac_err=`grep -v '^ *+' conftest.out`
  2181. if test -z "$ac_err"; then
  2182. rm -rf conftest*
  2183. for arg in float.h; do
  2184. case "$PORT_HEADERS" in
  2185. *$arg*)
  2186. ;;
  2187. *)
  2188. PORT_HEADERS="${PORT_HEADERS-} $arg"
  2189. ;;
  2190. esac
  2191. done
  2192. for arg in misc; do
  2193. case "$PORT_SUBDIRS" in
  2194. *$arg*)
  2195. ;;
  2196. *)
  2197. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  2198. ;;
  2199. esac
  2200. done
  2201. echo "$ac_t""supplying own" 1>&6
  2202. else
  2203. echo "$ac_err" >&5
  2204. fi
  2205. rm -f conftest*
  2206. else
  2207. echo "$ac_t""no" 1>&6
  2208. for arg in float.h; do
  2209. case "$PORT_HEADERS" in
  2210. *$arg*)
  2211. ;;
  2212. *)
  2213. PORT_HEADERS="${PORT_HEADERS-} $arg"
  2214. ;;
  2215. esac
  2216. done
  2217. for arg in misc; do
  2218. case "$PORT_SUBDIRS" in
  2219. *$arg*)
  2220. ;;
  2221. *)
  2222. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  2223. ;;
  2224. esac
  2225. done
  2226. echo "$ac_t""supplying own" 1>&6
  2227. fi
  2228. for arg in stdlib.h.in atexit.c; do
  2229. case "$PORT_MANIFEST" in
  2230. *$arg*)
  2231. ;;
  2232. *)
  2233. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  2234. ;;
  2235. esac
  2236. done
  2237. for arg in misc; do
  2238. case "$PORT_SUBDIRS" in
  2239. *$arg*)
  2240. ;;
  2241. *)
  2242. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  2243. ;;
  2244. esac
  2245. done
  2246. echo "#include <stdlib.h>" > conftestpath.c
  2247. #
  2248. # We add additional `/'s to the header file name to preclude compiler
  2249. # warnings about the non-portability of `#include "/usr/include/..."'.
  2250. #
  2251. case `uname -s`${GCC-} in
  2252. AIX)
  2253. #
  2254. # AIX's C compiler doesn't emit a line that gives the pathname of
  2255. # the included file.
  2256. #
  2257. # AIX's C compiler puts dependency information in a `.u' file.
  2258. #
  2259. # AIX 4.1's cc(1) makes the following complaint:
  2260. # ld: 0711-317 ERROR: Undefined symbol: .main
  2261. #
  2262. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  2263. # /dev/null.
  2264. #
  2265. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  2266. path=`sed -n '/[^\/]*\(\/[^ ]*stdlib\.h\).*/s//\1/p' \
  2267. conftestpath.u | head -1`
  2268. rm conftestpath.u
  2269. ;;
  2270. HP-UX)
  2271. #
  2272. # HP-UX's C compiler doesn't have a dependency-generation option,
  2273. # so we use another method.
  2274. #
  2275. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  2276. sed -n '/[^\/]*\(\/[^ ]*stdlib\.h\).*/s//\1/p' |
  2277. head -1`
  2278. ;;
  2279. *)
  2280. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  2281. sed -n '/[^\/]*\(\/[^ ]*stdlib\.h\).*/s//\1/p' |
  2282. head -1`
  2283. ;;
  2284. esac
  2285. case "$path" in
  2286. '')
  2287. path=/dev/null
  2288. ;;
  2289. *)
  2290. path=//$path
  2291. ;;
  2292. esac
  2293. cat >> confdefs.h <<EOF
  2294. #define UD_SYSTEM_STDLIB_H "$path"
  2295. EOF
  2296. for arg in misc; do
  2297. case "$PORT_SUBDIRS" in
  2298. *$arg*)
  2299. ;;
  2300. *)
  2301. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  2302. ;;
  2303. esac
  2304. done
  2305. ac_safe=`echo "stdlib.h" | tr './\055' '___'`
  2306. echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
  2307. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2308. echo $ac_n "(cached) $ac_c" 1>&6
  2309. else
  2310. cat > conftest.$ac_ext <<EOF
  2311. #line 2598 "configure"
  2312. #include "confdefs.h"
  2313. #include <stdlib.h>
  2314. EOF
  2315. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2316. { (eval echo configure:2603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2317. ac_err=`grep -v '^ *+' conftest.out`
  2318. if test -z "$ac_err"; then
  2319. rm -rf conftest*
  2320. eval "ac_cv_header_$ac_safe=yes"
  2321. else
  2322. echo "$ac_err" >&5
  2323. rm -rf conftest*
  2324. eval "ac_cv_header_$ac_safe=no"
  2325. fi
  2326. rm -f conftest*
  2327. fi
  2328. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2329. echo "$ac_t""yes" 1>&6
  2330. echo $ac_n "checking C header file <stdlib.h> for typedef size_t""... $ac_c" 1>&6
  2331. echo '#include <stdlib.h>' >conftest.c
  2332. if ($CPP conftest.c | grep size_t >/dev/null) 2>&5; then
  2333. echo "$ac_t""declared" 1>&6
  2334. rm conftest.c
  2335. else
  2336. cat > conftest.$ac_ext <<EOF
  2337. #line 2624 "configure"
  2338. #include "confdefs.h"
  2339. #include <stdlib.h>
  2340. int size_t;
  2341. int main() { return 0; }
  2342. int t() {
  2343. ; return 0; }
  2344. EOF
  2345. if { (eval echo configure:2634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2346. rm -rf conftest*
  2347. echo "$ac_t""undeclared" 1>&6
  2348. cat >> confdefs.h <<\EOF
  2349. #define UD_NO_STDLIB_H_SIZE_T 1
  2350. EOF
  2351. else
  2352. rm -rf conftest*
  2353. echo "$ac_t""declared" 1>&6
  2354. fi
  2355. rm -f conftest*
  2356. fi
  2357. else
  2358. echo "$ac_t""no" 1>&6
  2359. cat >> confdefs.h <<\EOF
  2360. #define UD_NO_STDLIB_H_SIZE_T 1
  2361. EOF
  2362. fi
  2363. for ac_func in atexit
  2364. do
  2365. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2366. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2367. echo $ac_n "(cached) $ac_c" 1>&6
  2368. else
  2369. cat > conftest.$ac_ext <<EOF
  2370. #line 2665 "configure"
  2371. #include "confdefs.h"
  2372. /* System header to define __stub macros and hopefully few prototypes,
  2373. which can conflict with char $ac_func(); below. */
  2374. #include <assert.h>
  2375. /* Override any gcc2 internal prototype to avoid an error. */
  2376. char $ac_func();
  2377. int main() { return 0; }
  2378. int t() {
  2379. /* The GNU C library defines this for functions which it implements
  2380. to always fail with ENOSYS. Some functions are actually named
  2381. something starting with __ and the normal name is an alias. */
  2382. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2383. choke me
  2384. #else
  2385. $ac_func();
  2386. #endif
  2387. ; return 0; }
  2388. EOF
  2389. if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2390. rm -rf conftest*
  2391. eval "ac_cv_func_$ac_func=yes"
  2392. else
  2393. rm -rf conftest*
  2394. eval "ac_cv_func_$ac_func=no"
  2395. fi
  2396. rm -f conftest*
  2397. fi
  2398. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2399. echo "$ac_t""yes" 1>&6
  2400. :
  2401. else
  2402. echo "$ac_t""no" 1>&6
  2403. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2404. fi
  2405. done
  2406. ac_safe=`echo "stdlib.h" | tr './\055' '___'`
  2407. echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
  2408. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2409. echo $ac_n "(cached) $ac_c" 1>&6
  2410. else
  2411. cat > conftest.$ac_ext <<EOF
  2412. #line 2712 "configure"
  2413. #include "confdefs.h"
  2414. #include <stdlib.h>
  2415. EOF
  2416. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2417. { (eval echo configure:2717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2418. ac_err=`grep -v '^ *+' conftest.out`
  2419. if test -z "$ac_err"; then
  2420. rm -rf conftest*
  2421. eval "ac_cv_header_$ac_safe=yes"
  2422. else
  2423. echo "$ac_err" >&5
  2424. rm -rf conftest*
  2425. eval "ac_cv_header_$ac_safe=no"
  2426. fi
  2427. rm -f conftest*
  2428. fi
  2429. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2430. echo "$ac_t""yes" 1>&6
  2431. echo $ac_n "checking C header file <stdlib.h> for function atexit()""... $ac_c" 1>&6
  2432. cat > conftest.$ac_ext <<EOF
  2433. #line 2733 "configure"
  2434. #include "confdefs.h"
  2435. #include <stdlib.h>
  2436. extern struct {int a; int b;} *atexit();
  2437. int main() { return 0; }
  2438. int t() {
  2439. ; return 0; }
  2440. EOF
  2441. if { (eval echo configure:2743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2442. rm -rf conftest*
  2443. echo "$ac_t""undeclared" 1>&6
  2444. UD_NO_ATEXIT_DECL="1"
  2445. cat >> confdefs.h <<\EOF
  2446. #define UD_NO_ATEXIT_DECL 1
  2447. EOF
  2448. else
  2449. rm -rf conftest*
  2450. echo "$ac_t""declared" 1>&6
  2451. fi
  2452. rm -f conftest*
  2453. else
  2454. echo "$ac_t""no" 1>&6
  2455. UD_NO_ATEXIT_DECL="1"
  2456. cat >> confdefs.h <<\EOF
  2457. #define UD_NO_ATEXIT_DECL 1
  2458. EOF
  2459. fi
  2460. for ac_func in getenv
  2461. do
  2462. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2463. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2464. echo $ac_n "(cached) $ac_c" 1>&6
  2465. else
  2466. cat > conftest.$ac_ext <<EOF
  2467. #line 2778 "configure"
  2468. #include "confdefs.h"
  2469. /* System header to define __stub macros and hopefully few prototypes,
  2470. which can conflict with char $ac_func(); below. */
  2471. #include <assert.h>
  2472. /* Override any gcc2 internal prototype to avoid an error. */
  2473. char $ac_func();
  2474. int main() { return 0; }
  2475. int t() {
  2476. /* The GNU C library defines this for functions which it implements
  2477. to always fail with ENOSYS. Some functions are actually named
  2478. something starting with __ and the normal name is an alias. */
  2479. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2480. choke me
  2481. #else
  2482. $ac_func();
  2483. #endif
  2484. ; return 0; }
  2485. EOF
  2486. if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2487. rm -rf conftest*
  2488. eval "ac_cv_func_$ac_func=yes"
  2489. else
  2490. rm -rf conftest*
  2491. eval "ac_cv_func_$ac_func=no"
  2492. fi
  2493. rm -f conftest*
  2494. fi
  2495. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2496. echo "$ac_t""yes" 1>&6
  2497. :
  2498. else
  2499. echo "$ac_t""no" 1>&6
  2500. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2501. fi
  2502. done
  2503. ac_safe=`echo "stdlib.h" | tr './\055' '___'`
  2504. echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
  2505. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2506. echo $ac_n "(cached) $ac_c" 1>&6
  2507. else
  2508. cat > conftest.$ac_ext <<EOF
  2509. #line 2825 "configure"
  2510. #include "confdefs.h"
  2511. #include <stdlib.h>
  2512. EOF
  2513. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2514. { (eval echo configure:2830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2515. ac_err=`grep -v '^ *+' conftest.out`
  2516. if test -z "$ac_err"; then
  2517. rm -rf conftest*
  2518. eval "ac_cv_header_$ac_safe=yes"
  2519. else
  2520. echo "$ac_err" >&5
  2521. rm -rf conftest*
  2522. eval "ac_cv_header_$ac_safe=no"
  2523. fi
  2524. rm -f conftest*
  2525. fi
  2526. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2527. echo "$ac_t""yes" 1>&6
  2528. echo $ac_n "checking C header file <stdlib.h> for function getenv()""... $ac_c" 1>&6
  2529. cat > conftest.$ac_ext <<EOF
  2530. #line 2846 "configure"
  2531. #include "confdefs.h"
  2532. #include <stdlib.h>
  2533. extern struct {int a; int b;} *getenv();
  2534. int main() { return 0; }
  2535. int t() {
  2536. ; return 0; }
  2537. EOF
  2538. if { (eval echo configure:2856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2539. rm -rf conftest*
  2540. echo "$ac_t""undeclared" 1>&6
  2541. UD_NO_GETENV_DECL="1"
  2542. cat >> confdefs.h <<\EOF
  2543. #define UD_NO_GETENV_DECL 1
  2544. EOF
  2545. else
  2546. rm -rf conftest*
  2547. echo "$ac_t""declared" 1>&6
  2548. fi
  2549. rm -f conftest*
  2550. else
  2551. echo "$ac_t""no" 1>&6
  2552. UD_NO_GETENV_DECL="1"
  2553. cat >> confdefs.h <<\EOF
  2554. #define UD_NO_GETENV_DECL 1
  2555. EOF
  2556. fi
  2557. for arg in strerror.c strstr.c string.h.in memmove.c; do
  2558. case "$PORT_MANIFEST" in
  2559. *$arg*)
  2560. ;;
  2561. *)
  2562. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  2563. ;;
  2564. esac
  2565. done
  2566. for arg in misc; do
  2567. case "$PORT_SUBDIRS" in
  2568. *$arg*)
  2569. ;;
  2570. *)
  2571. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  2572. ;;
  2573. esac
  2574. done
  2575. echo "#include <string.h>" > conftestpath.c
  2576. #
  2577. # We add additional `/'s to the header file name to preclude compiler
  2578. # warnings about the non-portability of `#include "/usr/include/..."'.
  2579. #
  2580. case `uname -s`${GCC-} in
  2581. AIX)
  2582. #
  2583. # AIX's C compiler doesn't emit a line that gives the pathname of
  2584. # the included file.
  2585. #
  2586. # AIX's C compiler puts dependency information in a `.u' file.
  2587. #
  2588. # AIX 4.1's cc(1) makes the following complaint:
  2589. # ld: 0711-317 ERROR: Undefined symbol: .main
  2590. #
  2591. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  2592. # /dev/null.
  2593. #
  2594. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  2595. path=`sed -n '/[^\/]*\(\/[^ ]*string\.h\).*/s//\1/p' \
  2596. conftestpath.u | head -1`
  2597. rm conftestpath.u
  2598. ;;
  2599. HP-UX)
  2600. #
  2601. # HP-UX's C compiler doesn't have a dependency-generation option,
  2602. # so we use another method.
  2603. #
  2604. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  2605. sed -n '/[^\/]*\(\/[^ ]*string\.h\).*/s//\1/p' |
  2606. head -1`
  2607. ;;
  2608. *)
  2609. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  2610. sed -n '/[^\/]*\(\/[^ ]*string\.h\).*/s//\1/p' |
  2611. head -1`
  2612. ;;
  2613. esac
  2614. case "$path" in
  2615. '')
  2616. path=/dev/null
  2617. ;;
  2618. *)
  2619. path=//$path
  2620. ;;
  2621. esac
  2622. cat >> confdefs.h <<EOF
  2623. #define UD_SYSTEM_STRING_H "$path"
  2624. EOF
  2625. for arg in misc; do
  2626. case "$PORT_SUBDIRS" in
  2627. *$arg*)
  2628. ;;
  2629. *)
  2630. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  2631. ;;
  2632. esac
  2633. done
  2634. ac_safe=`echo "string.h" | tr './\055' '___'`
  2635. echo $ac_n "checking for string.h""... $ac_c" 1>&6
  2636. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2637. echo $ac_n "(cached) $ac_c" 1>&6
  2638. else
  2639. cat > conftest.$ac_ext <<EOF
  2640. #line 2970 "configure"
  2641. #include "confdefs.h"
  2642. #include <string.h>
  2643. EOF
  2644. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2645. { (eval echo configure:2975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2646. ac_err=`grep -v '^ *+' conftest.out`
  2647. if test -z "$ac_err"; then
  2648. rm -rf conftest*
  2649. eval "ac_cv_header_$ac_safe=yes"
  2650. else
  2651. echo "$ac_err" >&5
  2652. rm -rf conftest*
  2653. eval "ac_cv_header_$ac_safe=no"
  2654. fi
  2655. rm -f conftest*
  2656. fi
  2657. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2658. echo "$ac_t""yes" 1>&6
  2659. echo $ac_n "checking C header file <string.h> for typedef size_t""... $ac_c" 1>&6
  2660. echo '#include <string.h>' >conftest.c
  2661. if ($CPP conftest.c | grep size_t >/dev/null) 2>&5; then
  2662. echo "$ac_t""declared" 1>&6
  2663. rm conftest.c
  2664. else
  2665. cat > conftest.$ac_ext <<EOF
  2666. #line 2996 "configure"
  2667. #include "confdefs.h"
  2668. #include <string.h>
  2669. int size_t;
  2670. int main() { return 0; }
  2671. int t() {
  2672. ; return 0; }
  2673. EOF
  2674. if { (eval echo configure:3006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2675. rm -rf conftest*
  2676. echo "$ac_t""undeclared" 1>&6
  2677. cat >> confdefs.h <<\EOF
  2678. #define UD_NO_STRING_H_SIZE_T 1
  2679. EOF
  2680. else
  2681. rm -rf conftest*
  2682. echo "$ac_t""declared" 1>&6
  2683. fi
  2684. rm -f conftest*
  2685. fi
  2686. else
  2687. echo "$ac_t""no" 1>&6
  2688. cat >> confdefs.h <<\EOF
  2689. #define UD_NO_STRING_H_SIZE_T 1
  2690. EOF
  2691. fi
  2692. for ac_func in strerror
  2693. do
  2694. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2695. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2696. echo $ac_n "(cached) $ac_c" 1>&6
  2697. else
  2698. cat > conftest.$ac_ext <<EOF
  2699. #line 3037 "configure"
  2700. #include "confdefs.h"
  2701. /* System header to define __stub macros and hopefully few prototypes,
  2702. which can conflict with char $ac_func(); below. */
  2703. #include <assert.h>
  2704. /* Override any gcc2 internal prototype to avoid an error. */
  2705. char $ac_func();
  2706. int main() { return 0; }
  2707. int t() {
  2708. /* The GNU C library defines this for functions which it implements
  2709. to always fail with ENOSYS. Some functions are actually named
  2710. something starting with __ and the normal name is an alias. */
  2711. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2712. choke me
  2713. #else
  2714. $ac_func();
  2715. #endif
  2716. ; return 0; }
  2717. EOF
  2718. if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2719. rm -rf conftest*
  2720. eval "ac_cv_func_$ac_func=yes"
  2721. else
  2722. rm -rf conftest*
  2723. eval "ac_cv_func_$ac_func=no"
  2724. fi
  2725. rm -f conftest*
  2726. fi
  2727. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2728. echo "$ac_t""yes" 1>&6
  2729. :
  2730. else
  2731. echo "$ac_t""no" 1>&6
  2732. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2733. fi
  2734. done
  2735. ac_safe=`echo "string.h" | tr './\055' '___'`
  2736. echo $ac_n "checking for string.h""... $ac_c" 1>&6
  2737. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2738. echo $ac_n "(cached) $ac_c" 1>&6
  2739. else
  2740. cat > conftest.$ac_ext <<EOF
  2741. #line 3084 "configure"
  2742. #include "confdefs.h"
  2743. #include <string.h>
  2744. EOF
  2745. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2746. { (eval echo configure:3089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2747. ac_err=`grep -v '^ *+' conftest.out`
  2748. if test -z "$ac_err"; then
  2749. rm -rf conftest*
  2750. eval "ac_cv_header_$ac_safe=yes"
  2751. else
  2752. echo "$ac_err" >&5
  2753. rm -rf conftest*
  2754. eval "ac_cv_header_$ac_safe=no"
  2755. fi
  2756. rm -f conftest*
  2757. fi
  2758. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2759. echo "$ac_t""yes" 1>&6
  2760. echo $ac_n "checking C header file <string.h> for function strerror()""... $ac_c" 1>&6
  2761. cat > conftest.$ac_ext <<EOF
  2762. #line 3105 "configure"
  2763. #include "confdefs.h"
  2764. #include <string.h>
  2765. extern struct {int a; int b;} *strerror();
  2766. int main() { return 0; }
  2767. int t() {
  2768. ; return 0; }
  2769. EOF
  2770. if { (eval echo configure:3115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2771. rm -rf conftest*
  2772. echo "$ac_t""undeclared" 1>&6
  2773. UD_NO_STRERROR_DECL="1"
  2774. cat >> confdefs.h <<\EOF
  2775. #define UD_NO_STRERROR_DECL 1
  2776. EOF
  2777. else
  2778. rm -rf conftest*
  2779. echo "$ac_t""declared" 1>&6
  2780. fi
  2781. rm -f conftest*
  2782. else
  2783. echo "$ac_t""no" 1>&6
  2784. UD_NO_STRERROR_DECL="1"
  2785. cat >> confdefs.h <<\EOF
  2786. #define UD_NO_STRERROR_DECL 1
  2787. EOF
  2788. fi
  2789. ac_safe=`echo "string.h" | tr './\055' '___'`
  2790. echo $ac_n "checking for string.h""... $ac_c" 1>&6
  2791. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2792. echo $ac_n "(cached) $ac_c" 1>&6
  2793. else
  2794. cat > conftest.$ac_ext <<EOF
  2795. #line 3149 "configure"
  2796. #include "confdefs.h"
  2797. #include <string.h>
  2798. EOF
  2799. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2800. { (eval echo configure:3154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2801. ac_err=`grep -v '^ *+' conftest.out`
  2802. if test -z "$ac_err"; then
  2803. rm -rf conftest*
  2804. eval "ac_cv_header_$ac_safe=yes"
  2805. else
  2806. echo "$ac_err" >&5
  2807. rm -rf conftest*
  2808. eval "ac_cv_header_$ac_safe=no"
  2809. fi
  2810. rm -f conftest*
  2811. fi
  2812. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2813. echo "$ac_t""yes" 1>&6
  2814. echo $ac_n "checking C header file <string.h> for function strchr()""... $ac_c" 1>&6
  2815. cat > conftest.$ac_ext <<EOF
  2816. #line 3170 "configure"
  2817. #include "confdefs.h"
  2818. #include <string.h>
  2819. extern struct {int a; int b;} *strchr();
  2820. int main() { return 0; }
  2821. int t() {
  2822. ; return 0; }
  2823. EOF
  2824. if { (eval echo configure:3180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2825. rm -rf conftest*
  2826. echo "$ac_t""undeclared" 1>&6
  2827. UD_NO_STRCHR_DECL="1"
  2828. cat >> confdefs.h <<\EOF
  2829. #define UD_NO_STRCHR_DECL 1
  2830. EOF
  2831. else
  2832. rm -rf conftest*
  2833. echo "$ac_t""declared" 1>&6
  2834. fi
  2835. rm -f conftest*
  2836. else
  2837. echo "$ac_t""no" 1>&6
  2838. UD_NO_STRCHR_DECL="1"
  2839. cat >> confdefs.h <<\EOF
  2840. #define UD_NO_STRCHR_DECL 1
  2841. EOF
  2842. fi
  2843. ac_safe=`echo "string.h" | tr './\055' '___'`
  2844. echo $ac_n "checking for string.h""... $ac_c" 1>&6
  2845. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2846. echo $ac_n "(cached) $ac_c" 1>&6
  2847. else
  2848. cat > conftest.$ac_ext <<EOF
  2849. #line 3214 "configure"
  2850. #include "confdefs.h"
  2851. #include <string.h>
  2852. EOF
  2853. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2854. { (eval echo configure:3219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2855. ac_err=`grep -v '^ *+' conftest.out`
  2856. if test -z "$ac_err"; then
  2857. rm -rf conftest*
  2858. eval "ac_cv_header_$ac_safe=yes"
  2859. else
  2860. echo "$ac_err" >&5
  2861. rm -rf conftest*
  2862. eval "ac_cv_header_$ac_safe=no"
  2863. fi
  2864. rm -f conftest*
  2865. fi
  2866. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2867. echo "$ac_t""yes" 1>&6
  2868. echo $ac_n "checking C header file <string.h> for function strcpy()""... $ac_c" 1>&6
  2869. cat > conftest.$ac_ext <<EOF
  2870. #line 3235 "configure"
  2871. #include "confdefs.h"
  2872. #include <string.h>
  2873. extern struct {int a; int b;} *strcpy();
  2874. int main() { return 0; }
  2875. int t() {
  2876. ; return 0; }
  2877. EOF
  2878. if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2879. rm -rf conftest*
  2880. echo "$ac_t""undeclared" 1>&6
  2881. UD_NO_STRCPY_DECL="1"
  2882. cat >> confdefs.h <<\EOF
  2883. #define UD_NO_STRCPY_DECL 1
  2884. EOF
  2885. else
  2886. rm -rf conftest*
  2887. echo "$ac_t""declared" 1>&6
  2888. fi
  2889. rm -f conftest*
  2890. else
  2891. echo "$ac_t""no" 1>&6
  2892. UD_NO_STRCPY_DECL="1"
  2893. cat >> confdefs.h <<\EOF
  2894. #define UD_NO_STRCPY_DECL 1
  2895. EOF
  2896. fi
  2897. ac_safe=`echo "string.h" | tr './\055' '___'`
  2898. echo $ac_n "checking for string.h""... $ac_c" 1>&6
  2899. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2900. echo $ac_n "(cached) $ac_c" 1>&6
  2901. else
  2902. cat > conftest.$ac_ext <<EOF
  2903. #line 3279 "configure"
  2904. #include "confdefs.h"
  2905. #include <string.h>
  2906. EOF
  2907. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2908. { (eval echo configure:3284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2909. ac_err=`grep -v '^ *+' conftest.out`
  2910. if test -z "$ac_err"; then
  2911. rm -rf conftest*
  2912. eval "ac_cv_header_$ac_safe=yes"
  2913. else
  2914. echo "$ac_err" >&5
  2915. rm -rf conftest*
  2916. eval "ac_cv_header_$ac_safe=no"
  2917. fi
  2918. rm -f conftest*
  2919. fi
  2920. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2921. echo "$ac_t""yes" 1>&6
  2922. echo $ac_n "checking C header file <string.h> for function strrchr()""... $ac_c" 1>&6
  2923. cat > conftest.$ac_ext <<EOF
  2924. #line 3300 "configure"
  2925. #include "confdefs.h"
  2926. #include <string.h>
  2927. extern struct {int a; int b;} *strrchr();
  2928. int main() { return 0; }
  2929. int t() {
  2930. ; return 0; }
  2931. EOF
  2932. if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2933. rm -rf conftest*
  2934. echo "$ac_t""undeclared" 1>&6
  2935. UD_NO_STRRCHR_DECL="1"
  2936. cat >> confdefs.h <<\EOF
  2937. #define UD_NO_STRRCHR_DECL 1
  2938. EOF
  2939. else
  2940. rm -rf conftest*
  2941. echo "$ac_t""declared" 1>&6
  2942. fi
  2943. rm -f conftest*
  2944. else
  2945. echo "$ac_t""no" 1>&6
  2946. UD_NO_STRRCHR_DECL="1"
  2947. cat >> confdefs.h <<\EOF
  2948. #define UD_NO_STRRCHR_DECL 1
  2949. EOF
  2950. fi
  2951. ac_safe=`echo "string.h" | tr './\055' '___'`
  2952. echo $ac_n "checking for string.h""... $ac_c" 1>&6
  2953. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2954. echo $ac_n "(cached) $ac_c" 1>&6
  2955. else
  2956. cat > conftest.$ac_ext <<EOF
  2957. #line 3344 "configure"
  2958. #include "confdefs.h"
  2959. #include <string.h>
  2960. EOF
  2961. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2962. { (eval echo configure:3349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2963. ac_err=`grep -v '^ *+' conftest.out`
  2964. if test -z "$ac_err"; then
  2965. rm -rf conftest*
  2966. eval "ac_cv_header_$ac_safe=yes"
  2967. else
  2968. echo "$ac_err" >&5
  2969. rm -rf conftest*
  2970. eval "ac_cv_header_$ac_safe=no"
  2971. fi
  2972. rm -f conftest*
  2973. fi
  2974. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2975. echo "$ac_t""yes" 1>&6
  2976. echo $ac_n "checking C header file <string.h> for function strncpy()""... $ac_c" 1>&6
  2977. cat > conftest.$ac_ext <<EOF
  2978. #line 3365 "configure"
  2979. #include "confdefs.h"
  2980. #include <string.h>
  2981. extern struct {int a; int b;} *strncpy();
  2982. int main() { return 0; }
  2983. int t() {
  2984. ; return 0; }
  2985. EOF
  2986. if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2987. rm -rf conftest*
  2988. echo "$ac_t""undeclared" 1>&6
  2989. UD_NO_STRNCPY_DECL="1"
  2990. cat >> confdefs.h <<\EOF
  2991. #define UD_NO_STRNCPY_DECL 1
  2992. EOF
  2993. else
  2994. rm -rf conftest*
  2995. echo "$ac_t""declared" 1>&6
  2996. fi
  2997. rm -f conftest*
  2998. else
  2999. echo "$ac_t""no" 1>&6
  3000. UD_NO_STRNCPY_DECL="1"
  3001. cat >> confdefs.h <<\EOF
  3002. #define UD_NO_STRNCPY_DECL 1
  3003. EOF
  3004. fi
  3005. ac_safe=`echo "string.h" | tr './\055' '___'`
  3006. echo $ac_n "checking for string.h""... $ac_c" 1>&6
  3007. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3008. echo $ac_n "(cached) $ac_c" 1>&6
  3009. else
  3010. cat > conftest.$ac_ext <<EOF
  3011. #line 3409 "configure"
  3012. #include "confdefs.h"
  3013. #include <string.h>
  3014. EOF
  3015. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3016. { (eval echo configure:3414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3017. ac_err=`grep -v '^ *+' conftest.out`
  3018. if test -z "$ac_err"; then
  3019. rm -rf conftest*
  3020. eval "ac_cv_header_$ac_safe=yes"
  3021. else
  3022. echo "$ac_err" >&5
  3023. rm -rf conftest*
  3024. eval "ac_cv_header_$ac_safe=no"
  3025. fi
  3026. rm -f conftest*
  3027. fi
  3028. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3029. echo "$ac_t""yes" 1>&6
  3030. echo $ac_n "checking C header file <string.h> for function strtok()""... $ac_c" 1>&6
  3031. cat > conftest.$ac_ext <<EOF
  3032. #line 3430 "configure"
  3033. #include "confdefs.h"
  3034. #include <string.h>
  3035. extern struct {int a; int b;} *strtok();
  3036. int main() { return 0; }
  3037. int t() {
  3038. ; return 0; }
  3039. EOF
  3040. if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3041. rm -rf conftest*
  3042. echo "$ac_t""undeclared" 1>&6
  3043. UD_NO_STRTOK_DECL="1"
  3044. cat >> confdefs.h <<\EOF
  3045. #define UD_NO_STRTOK_DECL 1
  3046. EOF
  3047. else
  3048. rm -rf conftest*
  3049. echo "$ac_t""declared" 1>&6
  3050. fi
  3051. rm -f conftest*
  3052. else
  3053. echo "$ac_t""no" 1>&6
  3054. UD_NO_STRTOK_DECL="1"
  3055. cat >> confdefs.h <<\EOF
  3056. #define UD_NO_STRTOK_DECL 1
  3057. EOF
  3058. fi
  3059. for ac_func in strstr
  3060. do
  3061. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3062. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3063. echo $ac_n "(cached) $ac_c" 1>&6
  3064. else
  3065. cat > conftest.$ac_ext <<EOF
  3066. #line 3475 "configure"
  3067. #include "confdefs.h"
  3068. /* System header to define __stub macros and hopefully few prototypes,
  3069. which can conflict with char $ac_func(); below. */
  3070. #include <assert.h>
  3071. /* Override any gcc2 internal prototype to avoid an error. */
  3072. char $ac_func();
  3073. int main() { return 0; }
  3074. int t() {
  3075. /* The GNU C library defines this for functions which it implements
  3076. to always fail with ENOSYS. Some functions are actually named
  3077. something starting with __ and the normal name is an alias. */
  3078. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3079. choke me
  3080. #else
  3081. $ac_func();
  3082. #endif
  3083. ; return 0; }
  3084. EOF
  3085. if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3086. rm -rf conftest*
  3087. eval "ac_cv_func_$ac_func=yes"
  3088. else
  3089. rm -rf conftest*
  3090. eval "ac_cv_func_$ac_func=no"
  3091. fi
  3092. rm -f conftest*
  3093. fi
  3094. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3095. echo "$ac_t""yes" 1>&6
  3096. :
  3097. else
  3098. echo "$ac_t""no" 1>&6
  3099. LIBOBJS="$LIBOBJS ${ac_func}.o"
  3100. fi
  3101. done
  3102. ac_safe=`echo "string.h" | tr './\055' '___'`
  3103. echo $ac_n "checking for string.h""... $ac_c" 1>&6
  3104. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3105. echo $ac_n "(cached) $ac_c" 1>&6
  3106. else
  3107. cat > conftest.$ac_ext <<EOF
  3108. #line 3522 "configure"
  3109. #include "confdefs.h"
  3110. #include <string.h>
  3111. EOF
  3112. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3113. { (eval echo configure:3527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3114. ac_err=`grep -v '^ *+' conftest.out`
  3115. if test -z "$ac_err"; then
  3116. rm -rf conftest*
  3117. eval "ac_cv_header_$ac_safe=yes"
  3118. else
  3119. echo "$ac_err" >&5
  3120. rm -rf conftest*
  3121. eval "ac_cv_header_$ac_safe=no"
  3122. fi
  3123. rm -f conftest*
  3124. fi
  3125. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3126. echo "$ac_t""yes" 1>&6
  3127. echo $ac_n "checking C header file <string.h> for function strstr()""... $ac_c" 1>&6
  3128. cat > conftest.$ac_ext <<EOF
  3129. #line 3543 "configure"
  3130. #include "confdefs.h"
  3131. #include <string.h>
  3132. extern struct {int a; int b;} *strstr();
  3133. int main() { return 0; }
  3134. int t() {
  3135. ; return 0; }
  3136. EOF
  3137. if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3138. rm -rf conftest*
  3139. echo "$ac_t""undeclared" 1>&6
  3140. UD_NO_STRSTR_DECL="1"
  3141. cat >> confdefs.h <<\EOF
  3142. #define UD_NO_STRSTR_DECL 1
  3143. EOF
  3144. else
  3145. rm -rf conftest*
  3146. echo "$ac_t""declared" 1>&6
  3147. fi
  3148. rm -f conftest*
  3149. else
  3150. echo "$ac_t""no" 1>&6
  3151. UD_NO_STRSTR_DECL="1"
  3152. cat >> confdefs.h <<\EOF
  3153. #define UD_NO_STRSTR_DECL 1
  3154. EOF
  3155. fi
  3156. for ac_func in memmove
  3157. do
  3158. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3159. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3160. echo $ac_n "(cached) $ac_c" 1>&6
  3161. else
  3162. cat > conftest.$ac_ext <<EOF
  3163. #line 3588 "configure"
  3164. #include "confdefs.h"
  3165. /* System header to define __stub macros and hopefully few prototypes,
  3166. which can conflict with char $ac_func(); below. */
  3167. #include <assert.h>
  3168. /* Override any gcc2 internal prototype to avoid an error. */
  3169. char $ac_func();
  3170. int main() { return 0; }
  3171. int t() {
  3172. /* The GNU C library defines this for functions which it implements
  3173. to always fail with ENOSYS. Some functions are actually named
  3174. something starting with __ and the normal name is an alias. */
  3175. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3176. choke me
  3177. #else
  3178. $ac_func();
  3179. #endif
  3180. ; return 0; }
  3181. EOF
  3182. if { (eval echo configure:3610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3183. rm -rf conftest*
  3184. eval "ac_cv_func_$ac_func=yes"
  3185. else
  3186. rm -rf conftest*
  3187. eval "ac_cv_func_$ac_func=no"
  3188. fi
  3189. rm -f conftest*
  3190. fi
  3191. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3192. echo "$ac_t""yes" 1>&6
  3193. :
  3194. else
  3195. echo "$ac_t""no" 1>&6
  3196. LIBOBJS="$LIBOBJS ${ac_func}.o"
  3197. fi
  3198. done
  3199. ac_safe=`echo "string.h" | tr './\055' '___'`
  3200. echo $ac_n "checking for string.h""... $ac_c" 1>&6
  3201. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3202. echo $ac_n "(cached) $ac_c" 1>&6
  3203. else
  3204. cat > conftest.$ac_ext <<EOF
  3205. #line 3635 "configure"
  3206. #include "confdefs.h"
  3207. #include <string.h>
  3208. EOF
  3209. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3210. { (eval echo configure:3640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3211. ac_err=`grep -v '^ *+' conftest.out`
  3212. if test -z "$ac_err"; then
  3213. rm -rf conftest*
  3214. eval "ac_cv_header_$ac_safe=yes"
  3215. else
  3216. echo "$ac_err" >&5
  3217. rm -rf conftest*
  3218. eval "ac_cv_header_$ac_safe=no"
  3219. fi
  3220. rm -f conftest*
  3221. fi
  3222. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3223. echo "$ac_t""yes" 1>&6
  3224. echo $ac_n "checking C header file <string.h> for function memmove()""... $ac_c" 1>&6
  3225. cat > conftest.$ac_ext <<EOF
  3226. #line 3656 "configure"
  3227. #include "confdefs.h"
  3228. #include <string.h>
  3229. extern struct {int a; int b;} *memmove();
  3230. int main() { return 0; }
  3231. int t() {
  3232. ; return 0; }
  3233. EOF
  3234. if { (eval echo configure:3666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3235. rm -rf conftest*
  3236. echo "$ac_t""undeclared" 1>&6
  3237. UD_NO_MEMMOVE_DECL="1"
  3238. cat >> confdefs.h <<\EOF
  3239. #define UD_NO_MEMMOVE_DECL 1
  3240. EOF
  3241. else
  3242. rm -rf conftest*
  3243. echo "$ac_t""declared" 1>&6
  3244. fi
  3245. rm -f conftest*
  3246. else
  3247. echo "$ac_t""no" 1>&6
  3248. UD_NO_MEMMOVE_DECL="1"
  3249. cat >> confdefs.h <<\EOF
  3250. #define UD_NO_MEMMOVE_DECL 1
  3251. EOF
  3252. fi
  3253. for arg in difftime.c strftime.c time.h.in; do
  3254. case "$PORT_MANIFEST" in
  3255. *$arg*)
  3256. ;;
  3257. *)
  3258. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  3259. ;;
  3260. esac
  3261. done
  3262. echo "#include <time.h>" > conftestpath.c
  3263. #
  3264. # We add additional `/'s to the header file name to preclude compiler
  3265. # warnings about the non-portability of `#include "/usr/include/..."'.
  3266. #
  3267. case `uname -s`${GCC-} in
  3268. AIX)
  3269. #
  3270. # AIX's C compiler doesn't emit a line that gives the pathname of
  3271. # the included file.
  3272. #
  3273. # AIX's C compiler puts dependency information in a `.u' file.
  3274. #
  3275. # AIX 4.1's cc(1) makes the following complaint:
  3276. # ld: 0711-317 ERROR: Undefined symbol: .main
  3277. #
  3278. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  3279. # /dev/null.
  3280. #
  3281. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  3282. path=`sed -n '/[^\/]*\(\/[^ ]*time\.h\).*/s//\1/p' \
  3283. conftestpath.u | head -1`
  3284. rm conftestpath.u
  3285. ;;
  3286. HP-UX)
  3287. #
  3288. # HP-UX's C compiler doesn't have a dependency-generation option,
  3289. # so we use another method.
  3290. #
  3291. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  3292. sed -n '/[^\/]*\(\/[^ ]*time\.h\).*/s//\1/p' |
  3293. head -1`
  3294. ;;
  3295. *)
  3296. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  3297. sed -n '/[^\/]*\(\/[^ ]*time\.h\).*/s//\1/p' |
  3298. head -1`
  3299. ;;
  3300. esac
  3301. case "$path" in
  3302. '')
  3303. path=/dev/null
  3304. ;;
  3305. *)
  3306. path=//$path
  3307. ;;
  3308. esac
  3309. cat >> confdefs.h <<EOF
  3310. #define UD_SYSTEM_TIME_H "$path"
  3311. EOF
  3312. for arg in misc; do
  3313. case "$PORT_SUBDIRS" in
  3314. *$arg*)
  3315. ;;
  3316. *)
  3317. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  3318. ;;
  3319. esac
  3320. done
  3321. ac_safe=`echo "time.h" | tr './\055' '___'`
  3322. echo $ac_n "checking for time.h""... $ac_c" 1>&6
  3323. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3324. echo $ac_n "(cached) $ac_c" 1>&6
  3325. else
  3326. cat > conftest.$ac_ext <<EOF
  3327. #line 3771 "configure"
  3328. #include "confdefs.h"
  3329. #include <time.h>
  3330. EOF
  3331. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3332. { (eval echo configure:3776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3333. ac_err=`grep -v '^ *+' conftest.out`
  3334. if test -z "$ac_err"; then
  3335. rm -rf conftest*
  3336. eval "ac_cv_header_$ac_safe=yes"
  3337. else
  3338. echo "$ac_err" >&5
  3339. rm -rf conftest*
  3340. eval "ac_cv_header_$ac_safe=no"
  3341. fi
  3342. rm -f conftest*
  3343. fi
  3344. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3345. echo "$ac_t""yes" 1>&6
  3346. echo $ac_n "checking C header file <time.h> for typedef time_t""... $ac_c" 1>&6
  3347. echo '#include <time.h>' >conftest.c
  3348. if ($CPP conftest.c | grep time_t >/dev/null) 2>&5; then
  3349. echo "$ac_t""declared" 1>&6
  3350. rm conftest.c
  3351. else
  3352. cat > conftest.$ac_ext <<EOF
  3353. #line 3797 "configure"
  3354. #include "confdefs.h"
  3355. #include <time.h>
  3356. int time_t;
  3357. int main() { return 0; }
  3358. int t() {
  3359. ; return 0; }
  3360. EOF
  3361. if { (eval echo configure:3807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3362. rm -rf conftest*
  3363. echo "$ac_t""undeclared" 1>&6
  3364. cat >> confdefs.h <<\EOF
  3365. #define UD_NO_TIME_H_TIME_T 1
  3366. EOF
  3367. else
  3368. rm -rf conftest*
  3369. echo "$ac_t""declared" 1>&6
  3370. fi
  3371. rm -f conftest*
  3372. fi
  3373. else
  3374. echo "$ac_t""no" 1>&6
  3375. cat >> confdefs.h <<\EOF
  3376. #define UD_NO_TIME_H_TIME_T 1
  3377. EOF
  3378. fi
  3379. ac_safe=`echo "time.h" | tr './\055' '___'`
  3380. echo $ac_n "checking for time.h""... $ac_c" 1>&6
  3381. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3382. echo $ac_n "(cached) $ac_c" 1>&6
  3383. else
  3384. cat > conftest.$ac_ext <<EOF
  3385. #line 3837 "configure"
  3386. #include "confdefs.h"
  3387. #include <time.h>
  3388. EOF
  3389. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3390. { (eval echo configure:3842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3391. ac_err=`grep -v '^ *+' conftest.out`
  3392. if test -z "$ac_err"; then
  3393. rm -rf conftest*
  3394. eval "ac_cv_header_$ac_safe=yes"
  3395. else
  3396. echo "$ac_err" >&5
  3397. rm -rf conftest*
  3398. eval "ac_cv_header_$ac_safe=no"
  3399. fi
  3400. rm -f conftest*
  3401. fi
  3402. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3403. echo "$ac_t""yes" 1>&6
  3404. echo $ac_n "checking C header file <time.h> for typedef size_t""... $ac_c" 1>&6
  3405. echo '#include <time.h>' >conftest.c
  3406. if ($CPP conftest.c | grep size_t >/dev/null) 2>&5; then
  3407. echo "$ac_t""declared" 1>&6
  3408. rm conftest.c
  3409. else
  3410. cat > conftest.$ac_ext <<EOF
  3411. #line 3863 "configure"
  3412. #include "confdefs.h"
  3413. #include <time.h>
  3414. int size_t;
  3415. int main() { return 0; }
  3416. int t() {
  3417. ; return 0; }
  3418. EOF
  3419. if { (eval echo configure:3873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3420. rm -rf conftest*
  3421. echo "$ac_t""undeclared" 1>&6
  3422. cat >> confdefs.h <<\EOF
  3423. #define UD_NO_TIME_H_SIZE_T 1
  3424. EOF
  3425. else
  3426. rm -rf conftest*
  3427. echo "$ac_t""declared" 1>&6
  3428. fi
  3429. rm -f conftest*
  3430. fi
  3431. else
  3432. echo "$ac_t""no" 1>&6
  3433. cat >> confdefs.h <<\EOF
  3434. #define UD_NO_TIME_H_SIZE_T 1
  3435. EOF
  3436. fi
  3437. for ac_func in difftime
  3438. do
  3439. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3440. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3441. echo $ac_n "(cached) $ac_c" 1>&6
  3442. else
  3443. cat > conftest.$ac_ext <<EOF
  3444. #line 3904 "configure"
  3445. #include "confdefs.h"
  3446. /* System header to define __stub macros and hopefully few prototypes,
  3447. which can conflict with char $ac_func(); below. */
  3448. #include <assert.h>
  3449. /* Override any gcc2 internal prototype to avoid an error. */
  3450. char $ac_func();
  3451. int main() { return 0; }
  3452. int t() {
  3453. /* The GNU C library defines this for functions which it implements
  3454. to always fail with ENOSYS. Some functions are actually named
  3455. something starting with __ and the normal name is an alias. */
  3456. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3457. choke me
  3458. #else
  3459. $ac_func();
  3460. #endif
  3461. ; return 0; }
  3462. EOF
  3463. if { (eval echo configure:3926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3464. rm -rf conftest*
  3465. eval "ac_cv_func_$ac_func=yes"
  3466. else
  3467. rm -rf conftest*
  3468. eval "ac_cv_func_$ac_func=no"
  3469. fi
  3470. rm -f conftest*
  3471. fi
  3472. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3473. echo "$ac_t""yes" 1>&6
  3474. :
  3475. else
  3476. echo "$ac_t""no" 1>&6
  3477. LIBOBJS="$LIBOBJS ${ac_func}.o"
  3478. fi
  3479. done
  3480. ac_safe=`echo "time.h" | tr './\055' '___'`
  3481. echo $ac_n "checking for time.h""... $ac_c" 1>&6
  3482. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3483. echo $ac_n "(cached) $ac_c" 1>&6
  3484. else
  3485. cat > conftest.$ac_ext <<EOF
  3486. #line 3951 "configure"
  3487. #include "confdefs.h"
  3488. #include <time.h>
  3489. EOF
  3490. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3491. { (eval echo configure:3956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3492. ac_err=`grep -v '^ *+' conftest.out`
  3493. if test -z "$ac_err"; then
  3494. rm -rf conftest*
  3495. eval "ac_cv_header_$ac_safe=yes"
  3496. else
  3497. echo "$ac_err" >&5
  3498. rm -rf conftest*
  3499. eval "ac_cv_header_$ac_safe=no"
  3500. fi
  3501. rm -f conftest*
  3502. fi
  3503. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3504. echo "$ac_t""yes" 1>&6
  3505. echo $ac_n "checking C header file <time.h> for function difftime()""... $ac_c" 1>&6
  3506. cat > conftest.$ac_ext <<EOF
  3507. #line 3972 "configure"
  3508. #include "confdefs.h"
  3509. #include <time.h>
  3510. extern struct {int a; int b;} *difftime();
  3511. int main() { return 0; }
  3512. int t() {
  3513. ; return 0; }
  3514. EOF
  3515. if { (eval echo configure:3982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3516. rm -rf conftest*
  3517. echo "$ac_t""undeclared" 1>&6
  3518. UD_NO_DIFFTIME_DECL="1"
  3519. cat >> confdefs.h <<\EOF
  3520. #define UD_NO_DIFFTIME_DECL 1
  3521. EOF
  3522. else
  3523. rm -rf conftest*
  3524. echo "$ac_t""declared" 1>&6
  3525. fi
  3526. rm -f conftest*
  3527. else
  3528. echo "$ac_t""no" 1>&6
  3529. UD_NO_DIFFTIME_DECL="1"
  3530. cat >> confdefs.h <<\EOF
  3531. #define UD_NO_DIFFTIME_DECL 1
  3532. EOF
  3533. fi
  3534. for ac_func in strftime
  3535. do
  3536. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3537. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3538. echo $ac_n "(cached) $ac_c" 1>&6
  3539. else
  3540. cat > conftest.$ac_ext <<EOF
  3541. #line 4017 "configure"
  3542. #include "confdefs.h"
  3543. /* System header to define __stub macros and hopefully few prototypes,
  3544. which can conflict with char $ac_func(); below. */
  3545. #include <assert.h>
  3546. /* Override any gcc2 internal prototype to avoid an error. */
  3547. char $ac_func();
  3548. int main() { return 0; }
  3549. int t() {
  3550. /* The GNU C library defines this for functions which it implements
  3551. to always fail with ENOSYS. Some functions are actually named
  3552. something starting with __ and the normal name is an alias. */
  3553. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3554. choke me
  3555. #else
  3556. $ac_func();
  3557. #endif
  3558. ; return 0; }
  3559. EOF
  3560. if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3561. rm -rf conftest*
  3562. eval "ac_cv_func_$ac_func=yes"
  3563. else
  3564. rm -rf conftest*
  3565. eval "ac_cv_func_$ac_func=no"
  3566. fi
  3567. rm -f conftest*
  3568. fi
  3569. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3570. echo "$ac_t""yes" 1>&6
  3571. :
  3572. else
  3573. echo "$ac_t""no" 1>&6
  3574. LIBOBJS="$LIBOBJS ${ac_func}.o"
  3575. fi
  3576. done
  3577. ac_safe=`echo "time.h" | tr './\055' '___'`
  3578. echo $ac_n "checking for time.h""... $ac_c" 1>&6
  3579. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3580. echo $ac_n "(cached) $ac_c" 1>&6
  3581. else
  3582. cat > conftest.$ac_ext <<EOF
  3583. #line 4064 "configure"
  3584. #include "confdefs.h"
  3585. #include <time.h>
  3586. EOF
  3587. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3588. { (eval echo configure:4069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3589. ac_err=`grep -v '^ *+' conftest.out`
  3590. if test -z "$ac_err"; then
  3591. rm -rf conftest*
  3592. eval "ac_cv_header_$ac_safe=yes"
  3593. else
  3594. echo "$ac_err" >&5
  3595. rm -rf conftest*
  3596. eval "ac_cv_header_$ac_safe=no"
  3597. fi
  3598. rm -f conftest*
  3599. fi
  3600. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3601. echo "$ac_t""yes" 1>&6
  3602. echo $ac_n "checking C header file <time.h> for function strftime()""... $ac_c" 1>&6
  3603. cat > conftest.$ac_ext <<EOF
  3604. #line 4085 "configure"
  3605. #include "confdefs.h"
  3606. #include <time.h>
  3607. extern struct {int a; int b;} *strftime();
  3608. int main() { return 0; }
  3609. int t() {
  3610. ; return 0; }
  3611. EOF
  3612. if { (eval echo configure:4095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3613. rm -rf conftest*
  3614. echo "$ac_t""undeclared" 1>&6
  3615. UD_NO_STRFTIME_DECL="1"
  3616. cat >> confdefs.h <<\EOF
  3617. #define UD_NO_STRFTIME_DECL 1
  3618. EOF
  3619. else
  3620. rm -rf conftest*
  3621. echo "$ac_t""declared" 1>&6
  3622. fi
  3623. rm -f conftest*
  3624. else
  3625. echo "$ac_t""no" 1>&6
  3626. UD_NO_STRFTIME_DECL="1"
  3627. cat >> confdefs.h <<\EOF
  3628. #define UD_NO_STRFTIME_DECL 1
  3629. EOF
  3630. fi
  3631. for arg in limits.h.in; do
  3632. case "$PORT_MANIFEST" in
  3633. *$arg*)
  3634. ;;
  3635. *)
  3636. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  3637. ;;
  3638. esac
  3639. done
  3640. for arg in misc; do
  3641. case "$PORT_SUBDIRS" in
  3642. *$arg*)
  3643. ;;
  3644. *)
  3645. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  3646. ;;
  3647. esac
  3648. done
  3649. echo "#include <limits.h>" > conftestpath.c
  3650. #
  3651. # We add additional `/'s to the header file name to preclude compiler
  3652. # warnings about the non-portability of `#include "/usr/include/..."'.
  3653. #
  3654. case `uname -s`${GCC-} in
  3655. AIX)
  3656. #
  3657. # AIX's C compiler doesn't emit a line that gives the pathname of
  3658. # the included file.
  3659. #
  3660. # AIX's C compiler puts dependency information in a `.u' file.
  3661. #
  3662. # AIX 4.1's cc(1) makes the following complaint:
  3663. # ld: 0711-317 ERROR: Undefined symbol: .main
  3664. #
  3665. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  3666. # /dev/null.
  3667. #
  3668. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  3669. path=`sed -n '/[^\/]*\(\/[^ ]*limits\.h\).*/s//\1/p' \
  3670. conftestpath.u | head -1`
  3671. rm conftestpath.u
  3672. ;;
  3673. HP-UX)
  3674. #
  3675. # HP-UX's C compiler doesn't have a dependency-generation option,
  3676. # so we use another method.
  3677. #
  3678. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  3679. sed -n '/[^\/]*\(\/[^ ]*limits\.h\).*/s//\1/p' |
  3680. head -1`
  3681. ;;
  3682. *)
  3683. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  3684. sed -n '/[^\/]*\(\/[^ ]*limits\.h\).*/s//\1/p' |
  3685. head -1`
  3686. ;;
  3687. esac
  3688. case "$path" in
  3689. '')
  3690. path=/dev/null
  3691. ;;
  3692. *)
  3693. path=//$path
  3694. ;;
  3695. esac
  3696. cat >> confdefs.h <<EOF
  3697. #define UD_SYSTEM_LIMITS_H "$path"
  3698. EOF
  3699. for arg in misc; do
  3700. case "$PORT_SUBDIRS" in
  3701. *$arg*)
  3702. ;;
  3703. *)
  3704. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  3705. ;;
  3706. esac
  3707. done
  3708. for arg in search.h.in tsearch.c tfind.c tdelete.c twalk.c \
  3709. search-node.h; do
  3710. case "$PORT_MANIFEST" in
  3711. *$arg*)
  3712. ;;
  3713. *)
  3714. PORT_MANIFEST="${PORT_MANIFEST-} $arg"
  3715. ;;
  3716. esac
  3717. done
  3718. for arg in misc; do
  3719. case "$PORT_SUBDIRS" in
  3720. *$arg*)
  3721. ;;
  3722. *)
  3723. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  3724. ;;
  3725. esac
  3726. done
  3727. echo "#include <search.h>" > conftestpath.c
  3728. #
  3729. # We add additional `/'s to the header file name to preclude compiler
  3730. # warnings about the non-portability of `#include "/usr/include/..."'.
  3731. #
  3732. case `uname -s`${GCC-} in
  3733. AIX)
  3734. #
  3735. # AIX's C compiler doesn't emit a line that gives the pathname of
  3736. # the included file.
  3737. #
  3738. # AIX's C compiler puts dependency information in a `.u' file.
  3739. #
  3740. # AIX 4.1's cc(1) makes the following complaint:
  3741. # ld: 0711-317 ERROR: Undefined symbol: .main
  3742. #
  3743. # AIX 4.1's ksh(1) has problems with `2>&5' so we redirect to
  3744. # /dev/null.
  3745. #
  3746. $CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>/dev/null
  3747. path=`sed -n '/[^\/]*\(\/[^ ]*search\.h\).*/s//\1/p' \
  3748. conftestpath.u | head -1`
  3749. rm conftestpath.u
  3750. ;;
  3751. HP-UX)
  3752. #
  3753. # HP-UX's C compiler doesn't have a dependency-generation option,
  3754. # so we use another method.
  3755. #
  3756. path=`$CC -E $CPPFLAGS conftestpath.c 2>&5 |
  3757. sed -n '/[^\/]*\(\/[^ ]*search\.h\).*/s//\1/p' |
  3758. head -1`
  3759. ;;
  3760. *)
  3761. path=`$CC_MAKEDEPEND $CPPFLAGS conftestpath.c 2>&5 |
  3762. sed -n '/[^\/]*\(\/[^ ]*search\.h\).*/s//\1/p' |
  3763. head -1`
  3764. ;;
  3765. esac
  3766. case "$path" in
  3767. '')
  3768. path=/dev/null
  3769. ;;
  3770. *)
  3771. path=//$path
  3772. ;;
  3773. esac
  3774. cat >> confdefs.h <<EOF
  3775. #define UD_SYSTEM_SEARCH_H "$path"
  3776. EOF
  3777. for arg in misc; do
  3778. case "$PORT_SUBDIRS" in
  3779. *$arg*)
  3780. ;;
  3781. *)
  3782. PORT_SUBDIRS="${PORT_SUBDIRS-} $arg"
  3783. ;;
  3784. esac
  3785. done
  3786. ac_safe=`echo "search.h" | tr './\055' '___'`
  3787. echo $ac_n "checking for search.h""... $ac_c" 1>&6
  3788. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3789. echo $ac_n "(cached) $ac_c" 1>&6
  3790. else
  3791. cat > conftest.$ac_ext <<EOF
  3792. #line 4291 "configure"
  3793. #include "confdefs.h"
  3794. #include <search.h>
  3795. EOF
  3796. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3797. { (eval echo configure:4296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3798. ac_err=`grep -v '^ *+' conftest.out`
  3799. if test -z "$ac_err"; then
  3800. rm -rf conftest*
  3801. eval "ac_cv_header_$ac_safe=yes"
  3802. else
  3803. echo "$ac_err" >&5
  3804. rm -rf conftest*
  3805. eval "ac_cv_header_$ac_safe=no"
  3806. fi
  3807. rm -f conftest*
  3808. fi
  3809. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3810. echo "$ac_t""yes" 1>&6
  3811. echo $ac_n "checking C header file <search.h> for typedef ENTRY""... $ac_c" 1>&6
  3812. echo '#include <search.h>' >conftest.c
  3813. if ($CPP conftest.c | grep ENTRY >/dev/null) 2>&5; then
  3814. echo "$ac_t""declared" 1>&6
  3815. rm conftest.c
  3816. else
  3817. cat > conftest.$ac_ext <<EOF
  3818. #line 4317 "configure"
  3819. #include "confdefs.h"
  3820. #include <search.h>
  3821. int ENTRY;
  3822. int main() { return 0; }
  3823. int t() {
  3824. ; return 0; }
  3825. EOF
  3826. if { (eval echo configure:4327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3827. rm -rf conftest*
  3828. echo "$ac_t""undeclared" 1>&6
  3829. cat >> confdefs.h <<\EOF
  3830. #define UD_NO_SEARCH_H_ENTRY 1
  3831. EOF
  3832. else
  3833. rm -rf conftest*
  3834. echo "$ac_t""declared" 1>&6
  3835. fi
  3836. rm -f conftest*
  3837. fi
  3838. else
  3839. echo "$ac_t""no" 1>&6
  3840. cat >> confdefs.h <<\EOF
  3841. #define UD_NO_SEARCH_H_ENTRY 1
  3842. EOF
  3843. fi
  3844. ac_safe=`echo "search.h" | tr './\055' '___'`
  3845. echo $ac_n "checking for search.h""... $ac_c" 1>&6
  3846. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3847. echo $ac_n "(cached) $ac_c" 1>&6
  3848. else
  3849. cat > conftest.$ac_ext <<EOF
  3850. #line 4357 "configure"
  3851. #include "confdefs.h"
  3852. #include <search.h>
  3853. EOF
  3854. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3855. { (eval echo configure:4362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3856. ac_err=`grep -v '^ *+' conftest.out`
  3857. if test -z "$ac_err"; then
  3858. rm -rf conftest*
  3859. eval "ac_cv_header_$ac_safe=yes"
  3860. else
  3861. echo "$ac_err" >&5
  3862. rm -rf conftest*
  3863. eval "ac_cv_header_$ac_safe=no"
  3864. fi
  3865. rm -f conftest*
  3866. fi
  3867. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3868. echo "$ac_t""yes" 1>&6
  3869. echo $ac_n "checking C header file <search.h> for typedef ACTION""... $ac_c" 1>&6
  3870. echo '#include <search.h>' >conftest.c
  3871. if ($CPP conftest.c | grep ACTION >/dev/null) 2>&5; then
  3872. echo "$ac_t""declared" 1>&6
  3873. rm conftest.c
  3874. else
  3875. cat > conftest.$ac_ext <<EOF
  3876. #line 4383 "configure"
  3877. #include "confdefs.h"
  3878. #include <search.h>
  3879. int ACTION;
  3880. int main() { return 0; }
  3881. int t() {
  3882. ; return 0; }
  3883. EOF
  3884. if { (eval echo configure:4393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3885. rm -rf conftest*
  3886. echo "$ac_t""undeclared" 1>&6
  3887. cat >> confdefs.h <<\EOF
  3888. #define UD_NO_SEARCH_H_ACTION 1
  3889. EOF
  3890. else
  3891. rm -rf conftest*
  3892. echo "$ac_t""declared" 1>&6
  3893. fi
  3894. rm -f conftest*
  3895. fi
  3896. else
  3897. echo "$ac_t""no" 1>&6
  3898. cat >> confdefs.h <<\EOF
  3899. #define UD_NO_SEARCH_H_ACTION 1
  3900. EOF
  3901. fi
  3902. ac_safe=`echo "search.h" | tr './\055' '___'`
  3903. echo $ac_n "checking for search.h""... $ac_c" 1>&6
  3904. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3905. echo $ac_n "(cached) $ac_c" 1>&6
  3906. else
  3907. cat > conftest.$ac_ext <<EOF
  3908. #line 4423 "configure"
  3909. #include "confdefs.h"
  3910. #include <search.h>
  3911. EOF
  3912. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3913. { (eval echo configure:4428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3914. ac_err=`grep -v '^ *+' conftest.out`
  3915. if test -z "$ac_err"; then
  3916. rm -rf conftest*
  3917. eval "ac_cv_header_$ac_safe=yes"
  3918. else
  3919. echo "$ac_err" >&5
  3920. rm -rf conftest*
  3921. eval "ac_cv_header_$ac_safe=no"
  3922. fi
  3923. rm -f conftest*
  3924. fi
  3925. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3926. echo "$ac_t""yes" 1>&6
  3927. echo $ac_n "checking C header file <search.h> for typedef VISIT""... $ac_c" 1>&6
  3928. echo '#include <search.h>' >conftest.c
  3929. if ($CPP conftest.c | grep VISIT >/dev/null) 2>&5; then
  3930. echo "$ac_t""declared" 1>&6
  3931. rm conftest.c
  3932. else
  3933. cat > conftest.$ac_ext <<EOF
  3934. #line 4449 "configure"
  3935. #include "confdefs.h"
  3936. #include <search.h>
  3937. int VISIT;
  3938. int main() { return 0; }
  3939. int t() {
  3940. ; return 0; }
  3941. EOF
  3942. if { (eval echo configure:4459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3943. rm -rf conftest*
  3944. echo "$ac_t""undeclared" 1>&6
  3945. cat >> confdefs.h <<\EOF
  3946. #define UD_NO_SEARCH_H_VISIT 1
  3947. EOF
  3948. else
  3949. rm -rf conftest*
  3950. echo "$ac_t""declared" 1>&6
  3951. fi
  3952. rm -f conftest*
  3953. fi
  3954. else
  3955. echo "$ac_t""no" 1>&6
  3956. cat >> confdefs.h <<\EOF
  3957. #define UD_NO_SEARCH_H_VISIT 1
  3958. EOF
  3959. fi
  3960. for ac_func in tsearch
  3961. do
  3962. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3963. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3964. echo $ac_n "(cached) $ac_c" 1>&6
  3965. else
  3966. cat > conftest.$ac_ext <<EOF
  3967. #line 4490 "configure"
  3968. #include "confdefs.h"
  3969. /* System header to define __stub macros and hopefully few prototypes,
  3970. which can conflict with char $ac_func(); below. */
  3971. #include <assert.h>
  3972. /* Override any gcc2 internal prototype to avoid an error. */
  3973. char $ac_func();
  3974. int main() { return 0; }
  3975. int t() {
  3976. /* The GNU C library defines this for functions which it implements
  3977. to always fail with ENOSYS. Some functions are actually named
  3978. something starting with __ and the normal name is an alias. */
  3979. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3980. choke me
  3981. #else
  3982. $ac_func();
  3983. #endif
  3984. ; return 0; }
  3985. EOF
  3986. if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3987. rm -rf conftest*
  3988. eval "ac_cv_func_$ac_func=yes"
  3989. else
  3990. rm -rf conftest*
  3991. eval "ac_cv_func_$ac_func=no"
  3992. fi
  3993. rm -f conftest*
  3994. fi
  3995. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3996. echo "$ac_t""yes" 1>&6
  3997. :
  3998. else
  3999. echo "$ac_t""no" 1>&6
  4000. LIBOBJS="$LIBOBJS ${ac_func}.o"
  4001. fi
  4002. done
  4003. ac_safe=`echo "search.h" | tr './\055' '___'`
  4004. echo $ac_n "checking for search.h""... $ac_c" 1>&6
  4005. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4006. echo $ac_n "(cached) $ac_c" 1>&6
  4007. else
  4008. cat > conftest.$ac_ext <<EOF
  4009. #line 4537 "configure"
  4010. #include "confdefs.h"
  4011. #include <search.h>
  4012. EOF
  4013. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4014. { (eval echo configure:4542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4015. ac_err=`grep -v '^ *+' conftest.out`
  4016. if test -z "$ac_err"; then
  4017. rm -rf conftest*
  4018. eval "ac_cv_header_$ac_safe=yes"
  4019. else
  4020. echo "$ac_err" >&5
  4021. rm -rf conftest*
  4022. eval "ac_cv_header_$ac_safe=no"
  4023. fi
  4024. rm -f conftest*
  4025. fi
  4026. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4027. echo "$ac_t""yes" 1>&6
  4028. echo $ac_n "checking C header file <search.h> for function tsearch()""... $ac_c" 1>&6
  4029. cat > conftest.$ac_ext <<EOF
  4030. #line 4558 "configure"
  4031. #include "confdefs.h"
  4032. #include <search.h>
  4033. extern struct {int a; int b;} *tsearch();
  4034. int main() { return 0; }
  4035. int t() {
  4036. ; return 0; }
  4037. EOF
  4038. if { (eval echo configure:4568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4039. rm -rf conftest*
  4040. echo "$ac_t""undeclared" 1>&6
  4041. UD_NO_TSEARCH_DECL="1"
  4042. cat >> confdefs.h <<\EOF
  4043. #define UD_NO_TSEARCH_DECL 1
  4044. EOF
  4045. else
  4046. rm -rf conftest*
  4047. echo "$ac_t""declared" 1>&6
  4048. fi
  4049. rm -f conftest*
  4050. else
  4051. echo "$ac_t""no" 1>&6
  4052. UD_NO_TSEARCH_DECL="1"
  4053. cat >> confdefs.h <<\EOF
  4054. #define UD_NO_TSEARCH_DECL 1
  4055. EOF
  4056. fi
  4057. for ac_func in tfind
  4058. do
  4059. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4060. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4061. echo $ac_n "(cached) $ac_c" 1>&6
  4062. else
  4063. cat > conftest.$ac_ext <<EOF
  4064. #line 4603 "configure"
  4065. #include "confdefs.h"
  4066. /* System header to define __stub macros and hopefully few prototypes,
  4067. which can conflict with char $ac_func(); below. */
  4068. #include <assert.h>
  4069. /* Override any gcc2 internal prototype to avoid an error. */
  4070. char $ac_func();
  4071. int main() { return 0; }
  4072. int t() {
  4073. /* The GNU C library defines this for functions which it implements
  4074. to always fail with ENOSYS. Some functions are actually named
  4075. something starting with __ and the normal name is an alias. */
  4076. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4077. choke me
  4078. #else
  4079. $ac_func();
  4080. #endif
  4081. ; return 0; }
  4082. EOF
  4083. if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4084. rm -rf conftest*
  4085. eval "ac_cv_func_$ac_func=yes"
  4086. else
  4087. rm -rf conftest*
  4088. eval "ac_cv_func_$ac_func=no"
  4089. fi
  4090. rm -f conftest*
  4091. fi
  4092. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4093. echo "$ac_t""yes" 1>&6
  4094. :
  4095. else
  4096. echo "$ac_t""no" 1>&6
  4097. LIBOBJS="$LIBOBJS ${ac_func}.o"
  4098. fi
  4099. done
  4100. ac_safe=`echo "search.h" | tr './\055' '___'`
  4101. echo $ac_n "checking for search.h""... $ac_c" 1>&6
  4102. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4103. echo $ac_n "(cached) $ac_c" 1>&6
  4104. else
  4105. cat > conftest.$ac_ext <<EOF
  4106. #line 4650 "configure"
  4107. #include "confdefs.h"
  4108. #include <search.h>
  4109. EOF
  4110. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4111. { (eval echo configure:4655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4112. ac_err=`grep -v '^ *+' conftest.out`
  4113. if test -z "$ac_err"; then
  4114. rm -rf conftest*
  4115. eval "ac_cv_header_$ac_safe=yes"
  4116. else
  4117. echo "$ac_err" >&5
  4118. rm -rf conftest*
  4119. eval "ac_cv_header_$ac_safe=no"
  4120. fi
  4121. rm -f conftest*
  4122. fi
  4123. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4124. echo "$ac_t""yes" 1>&6
  4125. echo $ac_n "checking C header file <search.h> for function tfind()""... $ac_c" 1>&6
  4126. cat > conftest.$ac_ext <<EOF
  4127. #line 4671 "configure"
  4128. #include "confdefs.h"
  4129. #include <search.h>
  4130. extern struct {int a; int b;} *tfind();
  4131. int main() { return 0; }
  4132. int t() {
  4133. ; return 0; }
  4134. EOF
  4135. if { (eval echo configure:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4136. rm -rf conftest*
  4137. echo "$ac_t""undeclared" 1>&6
  4138. UD_NO_TFIND_DECL="1"
  4139. cat >> confdefs.h <<\EOF
  4140. #define UD_NO_TFIND_DECL 1
  4141. EOF
  4142. else
  4143. rm -rf conftest*
  4144. echo "$ac_t""declared" 1>&6
  4145. fi
  4146. rm -f conftest*
  4147. else
  4148. echo "$ac_t""no" 1>&6
  4149. UD_NO_TFIND_DECL="1"
  4150. cat >> confdefs.h <<\EOF
  4151. #define UD_NO_TFIND_DECL 1
  4152. EOF
  4153. fi
  4154. for ac_func in tdelete
  4155. do
  4156. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4157. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4158. echo $ac_n "(cached) $ac_c" 1>&6
  4159. else
  4160. cat > conftest.$ac_ext <<EOF
  4161. #line 4716 "configure"
  4162. #include "confdefs.h"
  4163. /* System header to define __stub macros and hopefully few prototypes,
  4164. which can conflict with char $ac_func(); below. */
  4165. #include <assert.h>
  4166. /* Override any gcc2 internal prototype to avoid an error. */
  4167. char $ac_func();
  4168. int main() { return 0; }
  4169. int t() {
  4170. /* The GNU C library defines this for functions which it implements
  4171. to always fail with ENOSYS. Some functions are actually named
  4172. something starting with __ and the normal name is an alias. */
  4173. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4174. choke me
  4175. #else
  4176. $ac_func();
  4177. #endif
  4178. ; return 0; }
  4179. EOF
  4180. if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4181. rm -rf conftest*
  4182. eval "ac_cv_func_$ac_func=yes"
  4183. else
  4184. rm -rf conftest*
  4185. eval "ac_cv_func_$ac_func=no"
  4186. fi
  4187. rm -f conftest*
  4188. fi
  4189. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4190. echo "$ac_t""yes" 1>&6
  4191. :
  4192. else
  4193. echo "$ac_t""no" 1>&6
  4194. LIBOBJS="$LIBOBJS ${ac_func}.o"
  4195. fi
  4196. done
  4197. ac_safe=`echo "search.h" | tr './\055' '___'`
  4198. echo $ac_n "checking for search.h""... $ac_c" 1>&6
  4199. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4200. echo $ac_n "(cached) $ac_c" 1>&6
  4201. else
  4202. cat > conftest.$ac_ext <<EOF
  4203. #line 4763 "configure"
  4204. #include "confdefs.h"
  4205. #include <search.h>
  4206. EOF
  4207. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4208. { (eval echo configure:4768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4209. ac_err=`grep -v '^ *+' conftest.out`
  4210. if test -z "$ac_err"; then
  4211. rm -rf conftest*
  4212. eval "ac_cv_header_$ac_safe=yes"
  4213. else
  4214. echo "$ac_err" >&5
  4215. rm -rf conftest*
  4216. eval "ac_cv_header_$ac_safe=no"
  4217. fi
  4218. rm -f conftest*
  4219. fi
  4220. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4221. echo "$ac_t""yes" 1>&6
  4222. echo $ac_n "checking C header file <search.h> for function tdelete()""... $ac_c" 1>&6
  4223. cat > conftest.$ac_ext <<EOF
  4224. #line 4784 "configure"
  4225. #include "confdefs.h"
  4226. #include <search.h>
  4227. extern struct {int a; int b;} *tdelete();
  4228. int main() { return 0; }
  4229. int t() {
  4230. ; return 0; }
  4231. EOF
  4232. if { (eval echo configure:4794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4233. rm -rf conftest*
  4234. echo "$ac_t""undeclared" 1>&6
  4235. UD_NO_TDELETE_DECL="1"
  4236. cat >> confdefs.h <<\EOF
  4237. #define UD_NO_TDELETE_DECL 1
  4238. EOF
  4239. else
  4240. rm -rf conftest*
  4241. echo "$ac_t""declared" 1>&6
  4242. fi
  4243. rm -f conftest*
  4244. else
  4245. echo "$ac_t""no" 1>&6
  4246. UD_NO_TDELETE_DECL="1"
  4247. cat >> confdefs.h <<\EOF
  4248. #define UD_NO_TDELETE_DECL 1
  4249. EOF
  4250. fi
  4251. for ac_func in twalk
  4252. do
  4253. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4254. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4255. echo $ac_n "(cached) $ac_c" 1>&6
  4256. else
  4257. cat > conftest.$ac_ext <<EOF
  4258. #line 4829 "configure"
  4259. #include "confdefs.h"
  4260. /* System header to define __stub macros and hopefully few prototypes,
  4261. which can conflict with char $ac_func(); below. */
  4262. #include <assert.h>
  4263. /* Override any gcc2 internal prototype to avoid an error. */
  4264. char $ac_func();
  4265. int main() { return 0; }
  4266. int t() {
  4267. /* The GNU C library defines this for functions which it implements
  4268. to always fail with ENOSYS. Some functions are actually named
  4269. something starting with __ and the normal name is an alias. */
  4270. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4271. choke me
  4272. #else
  4273. $ac_func();
  4274. #endif
  4275. ; return 0; }
  4276. EOF
  4277. if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4278. rm -rf conftest*
  4279. eval "ac_cv_func_$ac_func=yes"
  4280. else
  4281. rm -rf conftest*
  4282. eval "ac_cv_func_$ac_func=no"
  4283. fi
  4284. rm -f conftest*
  4285. fi
  4286. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4287. echo "$ac_t""yes" 1>&6
  4288. :
  4289. else
  4290. echo "$ac_t""no" 1>&6
  4291. LIBOBJS="$LIBOBJS ${ac_func}.o"
  4292. fi
  4293. done
  4294. ac_safe=`echo "search.h" | tr './\055' '___'`
  4295. echo $ac_n "checking for search.h""... $ac_c" 1>&6
  4296. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4297. echo $ac_n "(cached) $ac_c" 1>&6
  4298. else
  4299. cat > conftest.$ac_ext <<EOF
  4300. #line 4876 "configure"
  4301. #include "confdefs.h"
  4302. #include <search.h>
  4303. EOF
  4304. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4305. { (eval echo configure:4881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4306. ac_err=`grep -v '^ *+' conftest.out`
  4307. if test -z "$ac_err"; then
  4308. rm -rf conftest*
  4309. eval "ac_cv_header_$ac_safe=yes"
  4310. else
  4311. echo "$ac_err" >&5
  4312. rm -rf conftest*
  4313. eval "ac_cv_header_$ac_safe=no"
  4314. fi
  4315. rm -f conftest*
  4316. fi
  4317. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4318. echo "$ac_t""yes" 1>&6
  4319. echo $ac_n "checking C header file <search.h> for function twalk()""... $ac_c" 1>&6
  4320. cat > conftest.$ac_ext <<EOF
  4321. #line 4897 "configure"
  4322. #include "confdefs.h"
  4323. #include <search.h>
  4324. extern struct {int a; int b;} *twalk();
  4325. int main() { return 0; }
  4326. int t() {
  4327. ; return 0; }
  4328. EOF
  4329. if { (eval echo configure:4907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4330. rm -rf conftest*
  4331. echo "$ac_t""undeclared" 1>&6
  4332. UD_NO_TWALK_DECL="1"
  4333. cat >> confdefs.h <<\EOF
  4334. #define UD_NO_TWALK_DECL 1
  4335. EOF
  4336. else
  4337. rm -rf conftest*
  4338. echo "$ac_t""declared" 1>&6
  4339. fi
  4340. rm -f conftest*
  4341. else
  4342. echo "$ac_t""no" 1>&6
  4343. UD_NO_TWALK_DECL="1"
  4344. cat >> confdefs.h <<\EOF
  4345. #define UD_NO_TWALK_DECL 1
  4346. EOF
  4347. fi
  4348. case "${PERL-unset}" in
  4349. unset)
  4350. for ac_prog in perl
  4351. do
  4352. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4353. set dummy $ac_prog; ac_word=$2
  4354. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4355. if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
  4356. echo $ac_n "(cached) $ac_c" 1>&6
  4357. else
  4358. if test -n "$PERL"; then
  4359. ac_cv_prog_PERL="$PERL" # Let the user override the test.
  4360. else
  4361. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  4362. for ac_dir in $PATH; do
  4363. test -z "$ac_dir" && ac_dir=.
  4364. if test -f $ac_dir/$ac_word; then
  4365. ac_cv_prog_PERL="$ac_prog"
  4366. break
  4367. fi
  4368. done
  4369. IFS="$ac_save_ifs"
  4370. fi
  4371. fi
  4372. PERL="$ac_cv_prog_PERL"
  4373. if test -n "$PERL"; then
  4374. echo "$ac_t""$PERL" 1>&6
  4375. else
  4376. echo "$ac_t""no" 1>&6
  4377. fi
  4378. test -n "$PERL" && break
  4379. done
  4380. case "$PERL" in
  4381. '') echo "PERL:perl utility:/usr/local/bin/perl" >> confdefs.missing
  4382. ;;
  4383. *)
  4384. ;;
  4385. esac
  4386. ;;
  4387. *)
  4388. echo $ac_n "checking for perl utility""... $ac_c" 1>&6
  4389. echo "$ac_t""$PERL" 1>&6
  4390. ;;
  4391. esac
  4392. echo $ac_n "checking for type of perl executable to create""... $ac_c" 1>&6
  4393. case ${LINKTYPE-unset} in
  4394. unset)
  4395. case `uname -s` in
  4396. ULTRIX)
  4397. LINKTYPE=static
  4398. ;;
  4399. *)
  4400. LINKTYPE=dynamic
  4401. ;;
  4402. esac
  4403. ;;
  4404. esac
  4405. echo "$ac_t""$LINKTYPE" 1>&6
  4406. echo $ac_n "checking for position-independent compilation flags""... $ac_c" 1>&6
  4407. picflag=
  4408. case `uname -s` in
  4409. HP-UX)
  4410. picflag=+z
  4411. ;;
  4412. esac
  4413. case "$picflag" in
  4414. '')
  4415. echo "$ac_t""''" 1>&6
  4416. ;;
  4417. *)
  4418. echo "$ac_t""$picflag" 1>&6
  4419. for arg in $picflag; do
  4420. case "$CFLAGS" in
  4421. *$arg*)
  4422. ;;
  4423. *)
  4424. CFLAGS="${CFLAGS-} $arg"
  4425. ;;
  4426. esac
  4427. done
  4428. for arg in $picflag; do
  4429. case "$FFLAGS" in
  4430. *$arg*)
  4431. ;;
  4432. *)
  4433. FFLAGS="${FFLAGS-} $arg"
  4434. ;;
  4435. esac
  4436. done
  4437. for arg in $picflag; do
  4438. case "$CXXFLAGS" in
  4439. *$arg*)
  4440. ;;
  4441. *)
  4442. CXXFLAGS="${CXXFLAGS-} $arg"
  4443. ;;
  4444. esac
  4445. done
  4446. ;;
  4447. esac
  4448. case "${PERL}" in
  4449. '')
  4450. PERL_ALL=
  4451. PERL_TEST=
  4452. PERL_INSTALL=
  4453. PERL_CLEAN=
  4454. PERL_DISTCLEAN=
  4455. PERL_MANUAL=
  4456. ;;
  4457. *)
  4458. case "$LINKTYPE" in
  4459. static)
  4460. PERL_ALL=perl/perl
  4461. PERL_INSTALL=perl/inst_perl
  4462. ;;
  4463. *)
  4464. PERL_ALL=perl/dynamic
  4465. PERL_INSTALL=perl/install
  4466. ;;
  4467. esac
  4468. PERL_TEST=perl/test
  4469. PERL_CLEAN=perl/clean
  4470. PERL_DISTCLEAN=perl/distclean
  4471. PERL_MANUAL=udunitsperl.1
  4472. ;;
  4473. esac
  4474. FTPDIR=${FTPDIR-/home/ftp}/pub/udunits
  4475. if test -s confdefs.missing; then
  4476. echo
  4477. echo "$0: ERROR: The following variables need values:"
  4478. echo
  4479. awk -F: 'BEGIN {printf "%-13s%-27s%s\n", "VARIABLE", "DESCRIPTION", "EXAMPLE";
  4480. printf "%-13s%-27s%s\n", "--------", "-------", "-------"}
  4481. {printf "%-13s%-27s%s\n", $1, $2, $3}' confdefs.missing
  4482. if test -t 0 -a -t 1; then
  4483. cat << \UD_CAT_EOF
  4484. For each variable above, this script will now request that you input
  4485. a value appropriate for your system (note that this value will not
  4486. be interpolated by a shell -- so don't use shell substitutions).
  4487. Alternatively, you can interrupt this script, set the above variables
  4488. in the environment or in the file CUSTOMIZE, and then re-execute this
  4489. script. (Variables referring to executable programs needn't be set if
  4490. the relevant directory is added to PATH. See file INSTALL for details.)
  4491. UD_CAT_EOF
  4492. saveifs="$IFS"; IFS=:
  4493. while read variable description example; do
  4494. echo "Enter a value for the $description (e.g. \"$example\"):" >/dev/tty
  4495. read value </dev/tty
  4496. echo "$variable='$value'"
  4497. echo >/dev/tty
  4498. done <confdefs.missing >conf.assigns
  4499. IFS="$saveifs"
  4500. . ./conf.assigns
  4501. rm -f conf.assigns
  4502. else
  4503. cat << UD_CAT_EOF
  4504. The above variables may be set in the environment or in the file
  4505. CUSTOMIZE. Variables referring to executable programs needn't be set
  4506. if the relevant directory is added to PATH. In any case, ./configure
  4507. should probably be rerun. See file INSTALL for details.
  4508. UD_CAT_EOF
  4509. rm confdefs.missing
  4510. exit 1
  4511. fi
  4512. fi
  4513. rm -f confdefs.missing
  4514. trap '' 1 2 15
  4515. cat > confcache <<\EOF
  4516. # This file is a shell script that caches the results of configure
  4517. # tests run on this system so they can be shared between configure
  4518. # scripts and configure runs. It is not useful on other systems.
  4519. # If it contains results you don't want to keep, you may remove or edit it.
  4520. #
  4521. # By default, configure uses ./config.cache as the cache file,
  4522. # creating it if it does not exist already. You can give configure
  4523. # the --cache-file=FILE option to use a different cache file; that is
  4524. # what configure does when it calls configure scripts in
  4525. # subdirectories, so they share the cache.
  4526. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  4527. # config.status only pays attention to the cache file if you give it the
  4528. # --recheck option to rerun configure.
  4529. #
  4530. EOF
  4531. # Ultrix sh set writes to stderr and can't be redirected directly,
  4532. # and sets the high bit in the cache file unless we assign to the vars.
  4533. (set) 2>&1 |
  4534. sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  4535. >> confcache
  4536. if cmp -s $cache_file confcache; then
  4537. :
  4538. else
  4539. if test -w $cache_file; then
  4540. echo "updating cache $cache_file"
  4541. cat confcache > $cache_file
  4542. else
  4543. echo "not updating unwritable cache $cache_file"
  4544. fi
  4545. fi
  4546. rm -f confcache
  4547. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  4548. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4549. # Let make expand exec_prefix.
  4550. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4551. # Any assignment to VPATH causes Sun make to only execute
  4552. # the first set of double-colon rules, so remove it if not needed.
  4553. # If there is a colon in the path, we need to keep it.
  4554. if test "x$srcdir" = x.; then
  4555. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  4556. fi
  4557. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  4558. DEFS=-DHAVE_CONFIG_H
  4559. # Without the "./", some shells look in PATH for config.status.
  4560. : ${CONFIG_STATUS=./config.status}
  4561. echo creating $CONFIG_STATUS
  4562. rm -f $CONFIG_STATUS
  4563. cat > $CONFIG_STATUS <<EOF
  4564. #! /bin/sh
  4565. # Generated automatically by configure.
  4566. # Run this file to recreate the current configuration.
  4567. # This directory was configured as follows,
  4568. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4569. #
  4570. # $0 $ac_configure_args
  4571. #
  4572. # Compiler output produced by configure, useful for debugging
  4573. # configure, is in ./config.log if it exists.
  4574. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  4575. for ac_option
  4576. do
  4577. case "\$ac_option" in
  4578. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4579. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  4580. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  4581. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  4582. echo "$CONFIG_STATUS generated by autoconf version 2.9"
  4583. exit 0 ;;
  4584. -help | --help | --hel | --he | --h)
  4585. echo "\$ac_cs_usage"; exit 0 ;;
  4586. *) echo "\$ac_cs_usage"; exit 1 ;;
  4587. esac
  4588. done
  4589. ac_given_srcdir=$srcdir
  4590. trap 'rm -fr `echo "Makefile
  4591. lib/Makefile
  4592. udunits/Makefile
  4593. perl/Makefile.PL
  4594. ${CONFIG_FILES-} port/misc/udposix.h port/misc/stdarg.h port/misc/stddef.h port/misc/stdlib.h port/misc/string.h port/misc/time.h port/misc/limits.h port/misc/search.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  4595. EOF
  4596. cat >> $CONFIG_STATUS <<EOF
  4597. # Protect against being on the right side of a sed subst in config.status.
  4598. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  4599. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  4600. $ac_vpsub
  4601. $extrasub
  4602. s%@CFLAGS@%$CFLAGS%g
  4603. s%@CPPFLAGS@%$CPPFLAGS%g
  4604. s%@CXXFLAGS@%$CXXFLAGS%g
  4605. s%@DEFS@%$DEFS%g
  4606. s%@LDFLAGS@%$LDFLAGS%g
  4607. s%@LIBS@%$LIBS%g
  4608. s%@exec_prefix@%$exec_prefix%g
  4609. s%@prefix@%$prefix%g
  4610. s%@program_transform_name@%$program_transform_name%g
  4611. s%@bindir@%$bindir%g
  4612. s%@sbindir@%$sbindir%g
  4613. s%@libexecdir@%$libexecdir%g
  4614. s%@datadir@%$datadir%g
  4615. s%@sysconfdir@%$sysconfdir%g
  4616. s%@sharedstatedir@%$sharedstatedir%g
  4617. s%@localstatedir@%$localstatedir%g
  4618. s%@libdir@%$libdir%g
  4619. s%@includedir@%$includedir%g
  4620. s%@oldincludedir@%$oldincludedir%g
  4621. s%@infodir@%$infodir%g
  4622. s%@mandir@%$mandir%g
  4623. s%@CONFIG_FILES@%$CONFIG_FILES%g
  4624. s%@PORT_SUBDIRS@%$PORT_SUBDIRS%g
  4625. s%@PORT_MANIFEST@%$PORT_MANIFEST%g
  4626. s%@PORT_ALL@%$PORT_ALL%g
  4627. s%@PORT_CLEAN@%$PORT_CLEAN%g
  4628. s%@PORT_DISTCLEAN@%$PORT_DISTCLEAN%g
  4629. s%@PORT_INSTALL@%$PORT_INSTALL%g
  4630. s%@prog@%$prog%g
  4631. s%@WHATIS@%$WHATIS%g
  4632. s%@MAKEWHATIS_CMD@%$MAKEWHATIS_CMD%g
  4633. s%@CC@%$CC%g
  4634. s%@OPSYS@%$OPSYS%g
  4635. s%@CC_MAKEDEPEND@%$CC_MAKEDEPEND%g
  4636. s%@CPP@%$CPP%g
  4637. s%@UD_NO_CONST@%$UD_NO_CONST%g
  4638. s%@UD_NO_VOLATILE@%$UD_NO_VOLATILE%g
  4639. s%@UD_NO_SIGNED@%$UD_NO_SIGNED%g
  4640. s%@UD_NO_PROTOTYPES@%$UD_NO_PROTOTYPES%g
  4641. s%@UD_NO_HASH@%$UD_NO_HASH%g
  4642. s%@UD_NO_HASHHASH@%$UD_NO_HASHHASH%g
  4643. s%@UD_NO_VOIDSTAR@%$UD_NO_VOIDSTAR%g
  4644. s%@AR@%$AR%g
  4645. s%@TARFLAGS@%$TARFLAGS%g
  4646. s%@RANLIB@%$RANLIB%g
  4647. s%@FTPBINDIR@%$FTPBINDIR%g
  4648. s%@LIBOBJS@%$LIBOBJS%g
  4649. s%@PORT_HEADERS@%$PORT_HEADERS%g
  4650. s%@PORT_CPP_LDM@%$PORT_CPP_LDM%g
  4651. s%@LD_UDPORT@%$LD_UDPORT%g
  4652. s%@NEQN@%$NEQN%g
  4653. s%@TBL@%$TBL%g
  4654. s%@LD_UDUNITS@%$LD_UDUNITS%g
  4655. s%@LD_YACC@%$LD_YACC%g
  4656. s%@LD_MATH@%$LD_MATH%g
  4657. s%@CFORTRAN_TYPE@%$CFORTRAN_TYPE%g
  4658. s%@FFLAGS@%$FFLAGS%g
  4659. s%@UD_NO_ATEXIT_DECL@%$UD_NO_ATEXIT_DECL%g
  4660. s%@UD_NO_GETENV_DECL@%$UD_NO_GETENV_DECL%g
  4661. s%@UD_NO_STRERROR_DECL@%$UD_NO_STRERROR_DECL%g
  4662. s%@UD_NO_STRCHR_DECL@%$UD_NO_STRCHR_DECL%g
  4663. s%@UD_NO_STRCPY_DECL@%$UD_NO_STRCPY_DECL%g
  4664. s%@UD_NO_STRRCHR_DECL@%$UD_NO_STRRCHR_DECL%g
  4665. s%@UD_NO_STRNCPY_DECL@%$UD_NO_STRNCPY_DECL%g
  4666. s%@UD_NO_STRTOK_DECL@%$UD_NO_STRTOK_DECL%g
  4667. s%@UD_NO_STRSTR_DECL@%$UD_NO_STRSTR_DECL%g
  4668. s%@UD_NO_MEMMOVE_DECL@%$UD_NO_MEMMOVE_DECL%g
  4669. s%@UD_NO_DIFFTIME_DECL@%$UD_NO_DIFFTIME_DECL%g
  4670. s%@UD_NO_STRFTIME_DECL@%$UD_NO_STRFTIME_DECL%g
  4671. s%@UD_NO_TSEARCH_DECL@%$UD_NO_TSEARCH_DECL%g
  4672. s%@UD_NO_TFIND_DECL@%$UD_NO_TFIND_DECL%g
  4673. s%@UD_NO_TDELETE_DECL@%$UD_NO_TDELETE_DECL%g
  4674. s%@UD_NO_TWALK_DECL@%$UD_NO_TWALK_DECL%g
  4675. s%@PERL@%$PERL%g
  4676. s%@LINKTYPE@%$LINKTYPE%g
  4677. s%@PERL_ALL@%$PERL_ALL%g
  4678. s%@PERL_TEST@%$PERL_TEST%g
  4679. s%@PERL_INSTALL@%$PERL_INSTALL%g
  4680. s%@PERL_CLEAN@%$PERL_CLEAN%g
  4681. s%@PERL_DISTCLEAN@%$PERL_DISTCLEAN%g
  4682. s%@PERL_MANUAL@%$PERL_MANUAL%g
  4683. s%@FTPDIR@%$FTPDIR%g
  4684. CEOF
  4685. EOF
  4686. cat >> $CONFIG_STATUS <<EOF
  4687. CONFIG_FILES=\${CONFIG_FILES-"Makefile
  4688. lib/Makefile
  4689. udunits/Makefile
  4690. perl/Makefile.PL
  4691. ${CONFIG_FILES-}"}
  4692. EOF
  4693. cat >> $CONFIG_STATUS <<\EOF
  4694. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  4695. # Support "outfile[:infile]", defaulting infile="outfile.in".
  4696. case "$ac_file" in
  4697. *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  4698. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4699. *) ac_file_in="${ac_file}.in" ;;
  4700. esac
  4701. # Adjust relative srcdir, etc. for subdirectories.
  4702. # Remove last slash and all that follows it. Not all systems have dirname.
  4703. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4704. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4705. # The file is in a subdirectory.
  4706. test ! -d "$ac_dir" && mkdir "$ac_dir"
  4707. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  4708. # A "../" for each directory in $ac_dir_suffix.
  4709. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  4710. else
  4711. ac_dir_suffix= ac_dots=
  4712. fi
  4713. case "$ac_given_srcdir" in
  4714. .) srcdir=.
  4715. if test -z "$ac_dots"; then top_srcdir=.
  4716. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  4717. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  4718. *) # Relative path.
  4719. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  4720. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  4721. esac
  4722. echo creating "$ac_file"
  4723. rm -f "$ac_file"
  4724. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  4725. case "$ac_file" in
  4726. *Makefile*) ac_comsub="1i\\
  4727. # $configure_input" ;;
  4728. *) ac_comsub= ;;
  4729. esac
  4730. sed -e "$ac_comsub
  4731. s%@configure_input@%$configure_input%g
  4732. s%@srcdir@%$srcdir%g
  4733. s%@top_srcdir@%$top_srcdir%g
  4734. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  4735. fi; done
  4736. rm -f conftest.subs
  4737. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  4738. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  4739. #
  4740. # ac_d sets the value in "#define NAME VALUE" lines.
  4741. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  4742. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  4743. ac_dC='\3'
  4744. ac_dD='%g'
  4745. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  4746. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  4747. ac_uB='\([ ]\)%\1#\2define\3'
  4748. ac_uC=' '
  4749. ac_uD='\4%g'
  4750. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4751. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  4752. ac_eB='$%\1#\2define\3'
  4753. ac_eC=' '
  4754. ac_eD='%g'
  4755. CONFIG_HEADERS=${CONFIG_HEADERS-"port/misc/udposix.h port/misc/stdarg.h port/misc/stddef.h port/misc/stdlib.h port/misc/string.h port/misc/time.h port/misc/limits.h port/misc/search.h"}
  4756. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  4757. # Support "outfile[:infile]", defaulting infile="outfile.in".
  4758. case "$ac_file" in
  4759. *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  4760. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4761. *) ac_file_in="${ac_file}.in" ;;
  4762. esac
  4763. echo creating $ac_file
  4764. rm -f conftest.frag conftest.in conftest.out
  4765. cp $ac_given_srcdir/$ac_file_in conftest.in
  4766. EOF
  4767. # Transform confdefs.h into a sed script conftest.vals that substitutes
  4768. # the proper values into config.h.in to produce config.h. And first:
  4769. # Protect against being on the right side of a sed subst in config.status.
  4770. # Protect against being in an unquoted here document in config.status.
  4771. rm -f conftest.vals
  4772. cat > conftest.hdr <<\EOF
  4773. s/[\\&%]/\\&/g
  4774. s%[\\$`]%\\&%g
  4775. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  4776. s%ac_d%ac_u%gp
  4777. s%ac_u%ac_e%gp
  4778. EOF
  4779. sed -n -f conftest.hdr confdefs.h > conftest.vals
  4780. rm -f conftest.hdr
  4781. # This sed command replaces #undef with comments. This is necessary, for
  4782. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4783. # on some systems where configure will not decide to define it.
  4784. cat >> conftest.vals <<\EOF
  4785. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  4786. EOF
  4787. # Break up conftest.vals because some shells have a limit on
  4788. # the size of here documents, and old seds have small limits too.
  4789. # Maximum number of lines to put in a single here document.
  4790. ac_max_here_lines=12
  4791. rm -f conftest.tail
  4792. while :
  4793. do
  4794. ac_lines=`grep -c . conftest.vals`
  4795. # grep -c gives empty output for an empty file on some AIX systems.
  4796. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4797. # Write a limited-size here document to conftest.frag.
  4798. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  4799. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  4800. echo 'CEOF
  4801. sed -f conftest.frag conftest.in > conftest.out
  4802. rm -f conftest.in
  4803. mv conftest.out conftest.in
  4804. ' >> $CONFIG_STATUS
  4805. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  4806. rm -f conftest.vals
  4807. mv conftest.tail conftest.vals
  4808. done
  4809. rm -f conftest.vals
  4810. cat >> $CONFIG_STATUS <<\EOF
  4811. rm -f conftest.frag conftest.h
  4812. case "$ac_file" in
  4813. *.h|*.hh|*.H)
  4814. echo "/* $ac_file. Generated automatically by configure. */" \
  4815. > conftest.h
  4816. ;;
  4817. esac
  4818. cat conftest.in >> conftest.h
  4819. rm -f conftest.in
  4820. if cmp -s $ac_file conftest.h 2>/dev/null; then
  4821. echo "$ac_file is unchanged"
  4822. rm -f conftest.h
  4823. else
  4824. rm -f $ac_file
  4825. mv conftest.h $ac_file
  4826. fi
  4827. fi; done
  4828. EOF
  4829. cat >> $CONFIG_STATUS <<EOF
  4830. CC="$CC"
  4831. EOF
  4832. cat >> $CONFIG_STATUS <<\EOF
  4833. #
  4834. # Create a script to accomplish the post processing.
  4835. #
  4836. cat << UD_EOF_CONFTEST_C > conftest.c
  4837. #include <stdio.h>
  4838. main()
  4839. {
  4840. return readsub((char*)NULL) ? 0 : 1;
  4841. }
  4842. readsub(inpath)
  4843. char *inpath;
  4844. {
  4845. char buf[2048], path[1024];
  4846. FILE *fp = inpath == NULL
  4847. ? stdin
  4848. : fopen(inpath, "r");
  4849. if (fp == NULL) {
  4850. (void) perror(inpath);
  4851. return 0;
  4852. }
  4853. buf[sizeof(buf)-1] = 0;
  4854. while (fgets(buf, sizeof(buf), fp) != NULL) {
  4855. if (sscanf(buf, "include%*[ \t]%s", path) == 1) {
  4856. if (!readsub(path))
  4857. return 0;
  4858. } else {
  4859. (void) fputs(buf, stdout);
  4860. }
  4861. }
  4862. return 1;
  4863. }
  4864. UD_EOF_CONFTEST_C
  4865. if eval $CC -o conftest ${CFLAGS-} ${CPPFLAGS-} ${LDFLAGS-} conftest.c; then
  4866. conftest=`pwd`/conftest
  4867. case "${CONFIG_FILES-}" in
  4868. '')
  4869. ;;
  4870. *)
  4871. for file in ${CONFIG_FILES-}; do
  4872. echo 1>&2 "expanding \`include's in file \`$file'"
  4873. sd=`pwd`/`echo $file | sed 's,[^/]*$,,'`
  4874. base=`basename $file`
  4875. (cd $sd && $conftest < $base > conftest.mk &&
  4876. mv conftest.mk $base) || exit 1
  4877. done
  4878. ;;
  4879. esac
  4880. fi
  4881. rm conftest conftest.c
  4882. exit 0
  4883. EOF
  4884. chmod +x $CONFIG_STATUS
  4885. rm -fr confdefs* $ac_clean_files
  4886. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1