PageRenderTime 59ms CodeModel.GetById 20ms 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

Large files files are truncated, but you can click here to view the full 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…

Large files files are truncated, but you can click here to view the full file