You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3217 lines
92 KiB

25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  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. ac_help="$ac_help
  13. --enable-shared build shared libraries [default=yes]
  14. --enable-shared=PKGS only build shared libraries if the current package
  15. appears as an element in the PKGS list"
  16. ac_help="$ac_help
  17. --enable-static build static libraries [default=yes]
  18. --enable-static=PKGS only build shared libraries if the current package
  19. appears as an element in the PKGS list"
  20. ac_help="$ac_help
  21. --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  22. ac_help="$ac_help
  23. --with-gmp use external fast low-level functions from GNU MP 3.
  24. [default=yes]"
  25. # Initialize some variables set by options.
  26. # The variables have the same names as the options, with
  27. # dashes changed to underlines.
  28. build=NONE
  29. cache_file=./config.cache
  30. exec_prefix=NONE
  31. host=NONE
  32. no_create=
  33. nonopt=NONE
  34. no_recursion=
  35. prefix=NONE
  36. program_prefix=NONE
  37. program_suffix=NONE
  38. program_transform_name=s,x,x,
  39. silent=
  40. site=
  41. srcdir=
  42. target=NONE
  43. verbose=
  44. x_includes=NONE
  45. x_libraries=NONE
  46. bindir='${exec_prefix}/bin'
  47. sbindir='${exec_prefix}/sbin'
  48. libexecdir='${exec_prefix}/libexec'
  49. datadir='${prefix}/share'
  50. sysconfdir='${prefix}/etc'
  51. sharedstatedir='${prefix}/com'
  52. localstatedir='${prefix}/var'
  53. libdir='${exec_prefix}/lib'
  54. includedir='${prefix}/include'
  55. oldincludedir='/usr/include'
  56. infodir='${prefix}/info'
  57. mandir='${prefix}/man'
  58. # Initialize some other variables.
  59. subdirs=
  60. MFLAGS= MAKEFLAGS=
  61. SHELL=${CONFIG_SHELL-/bin/sh}
  62. # Maximum number of lines to put in a shell here document.
  63. ac_max_here_lines=12
  64. ac_prev=
  65. for ac_option
  66. do
  67. # If the previous option needs an argument, assign it.
  68. if test -n "$ac_prev"; then
  69. eval "$ac_prev=\$ac_option"
  70. ac_prev=
  71. continue
  72. fi
  73. case "$ac_option" in
  74. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  75. *) ac_optarg= ;;
  76. esac
  77. # Accept the important Cygnus configure options, so we can diagnose typos.
  78. case "$ac_option" in
  79. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  80. ac_prev=bindir ;;
  81. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  82. bindir="$ac_optarg" ;;
  83. -build | --build | --buil | --bui | --bu)
  84. ac_prev=build ;;
  85. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  86. build="$ac_optarg" ;;
  87. -cache-file | --cache-file | --cache-fil | --cache-fi \
  88. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  89. ac_prev=cache_file ;;
  90. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  91. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  92. cache_file="$ac_optarg" ;;
  93. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  94. ac_prev=datadir ;;
  95. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  96. | --da=*)
  97. datadir="$ac_optarg" ;;
  98. -disable-* | --disable-*)
  99. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  100. # Reject names that are not valid shell variable names.
  101. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  102. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  103. fi
  104. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  105. eval "enable_${ac_feature}=no" ;;
  106. -enable-* | --enable-*)
  107. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  108. # Reject names that are not valid shell variable names.
  109. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  110. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  111. fi
  112. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  113. case "$ac_option" in
  114. *=*) ;;
  115. *) ac_optarg=yes ;;
  116. esac
  117. eval "enable_${ac_feature}='$ac_optarg'" ;;
  118. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  119. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  120. | --exec | --exe | --ex)
  121. ac_prev=exec_prefix ;;
  122. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  123. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  124. | --exec=* | --exe=* | --ex=*)
  125. exec_prefix="$ac_optarg" ;;
  126. -gas | --gas | --ga | --g)
  127. # Obsolete; use --with-gas.
  128. with_gas=yes ;;
  129. -help | --help | --hel | --he)
  130. # Omit some internal or obsolete options to make the list less imposing.
  131. # This message is too long to be a string in the A/UX 3.1 sh.
  132. cat << EOF
  133. Usage: configure [options] [host]
  134. Options: [defaults in brackets after descriptions]
  135. Configuration:
  136. --cache-file=FILE cache test results in FILE
  137. --help print this message
  138. --no-create do not create output files
  139. --quiet, --silent do not print \`checking...' messages
  140. --version print the version of autoconf that created configure
  141. Directory and file names:
  142. --prefix=PREFIX install architecture-independent files in PREFIX
  143. [$ac_default_prefix]
  144. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  145. [same as prefix]
  146. --bindir=DIR user executables in DIR [EPREFIX/bin]
  147. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  148. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  149. --datadir=DIR read-only architecture-independent data in DIR
  150. [PREFIX/share]
  151. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  152. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  153. [PREFIX/com]
  154. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  155. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  156. --includedir=DIR C header files in DIR [PREFIX/include]
  157. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  158. --infodir=DIR info documentation in DIR [PREFIX/info]
  159. --mandir=DIR man documentation in DIR [PREFIX/man]
  160. --srcdir=DIR find the sources in DIR [configure dir or ..]
  161. --program-prefix=PREFIX prepend PREFIX to installed program names
  162. --program-suffix=SUFFIX append SUFFIX to installed program names
  163. --program-transform-name=PROGRAM
  164. run sed PROGRAM on installed program names
  165. EOF
  166. cat << EOF
  167. Host type:
  168. --build=BUILD configure for building on BUILD [BUILD=HOST]
  169. --host=HOST configure for HOST [guessed]
  170. --target=TARGET configure for TARGET [TARGET=HOST]
  171. Features and packages:
  172. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  173. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  174. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  175. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  176. --x-includes=DIR X include files are in DIR
  177. --x-libraries=DIR X library files are in DIR
  178. EOF
  179. if test -n "$ac_help"; then
  180. echo "--enable and --with options recognized:$ac_help"
  181. fi
  182. exit 0 ;;
  183. -host | --host | --hos | --ho)
  184. ac_prev=host ;;
  185. -host=* | --host=* | --hos=* | --ho=*)
  186. host="$ac_optarg" ;;
  187. -includedir | --includedir | --includedi | --included | --include \
  188. | --includ | --inclu | --incl | --inc)
  189. ac_prev=includedir ;;
  190. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  191. | --includ=* | --inclu=* | --incl=* | --inc=*)
  192. includedir="$ac_optarg" ;;
  193. -infodir | --infodir | --infodi | --infod | --info | --inf)
  194. ac_prev=infodir ;;
  195. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  196. infodir="$ac_optarg" ;;
  197. -libdir | --libdir | --libdi | --libd)
  198. ac_prev=libdir ;;
  199. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  200. libdir="$ac_optarg" ;;
  201. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  202. | --libexe | --libex | --libe)
  203. ac_prev=libexecdir ;;
  204. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  205. | --libexe=* | --libex=* | --libe=*)
  206. libexecdir="$ac_optarg" ;;
  207. -localstatedir | --localstatedir | --localstatedi | --localstated \
  208. | --localstate | --localstat | --localsta | --localst \
  209. | --locals | --local | --loca | --loc | --lo)
  210. ac_prev=localstatedir ;;
  211. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  212. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  213. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  214. localstatedir="$ac_optarg" ;;
  215. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  216. ac_prev=mandir ;;
  217. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  218. mandir="$ac_optarg" ;;
  219. -nfp | --nfp | --nf)
  220. # Obsolete; use --without-fp.
  221. with_fp=no ;;
  222. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  223. | --no-cr | --no-c)
  224. no_create=yes ;;
  225. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  226. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  227. no_recursion=yes ;;
  228. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  229. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  230. | --oldin | --oldi | --old | --ol | --o)
  231. ac_prev=oldincludedir ;;
  232. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  233. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  234. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  235. oldincludedir="$ac_optarg" ;;
  236. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  237. ac_prev=prefix ;;
  238. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  239. prefix="$ac_optarg" ;;
  240. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  241. | --program-pre | --program-pr | --program-p)
  242. ac_prev=program_prefix ;;
  243. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  244. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  245. program_prefix="$ac_optarg" ;;
  246. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  247. | --program-suf | --program-su | --program-s)
  248. ac_prev=program_suffix ;;
  249. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  250. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  251. program_suffix="$ac_optarg" ;;
  252. -program-transform-name | --program-transform-name \
  253. | --program-transform-nam | --program-transform-na \
  254. | --program-transform-n | --program-transform- \
  255. | --program-transform | --program-transfor \
  256. | --program-transfo | --program-transf \
  257. | --program-trans | --program-tran \
  258. | --progr-tra | --program-tr | --program-t)
  259. ac_prev=program_transform_name ;;
  260. -program-transform-name=* | --program-transform-name=* \
  261. | --program-transform-nam=* | --program-transform-na=* \
  262. | --program-transform-n=* | --program-transform-=* \
  263. | --program-transform=* | --program-transfor=* \
  264. | --program-transfo=* | --program-transf=* \
  265. | --program-trans=* | --program-tran=* \
  266. | --progr-tra=* | --program-tr=* | --program-t=*)
  267. program_transform_name="$ac_optarg" ;;
  268. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  269. | -silent | --silent | --silen | --sile | --sil)
  270. silent=yes ;;
  271. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  272. ac_prev=sbindir ;;
  273. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  274. | --sbi=* | --sb=*)
  275. sbindir="$ac_optarg" ;;
  276. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  277. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  278. | --sharedst | --shareds | --shared | --share | --shar \
  279. | --sha | --sh)
  280. ac_prev=sharedstatedir ;;
  281. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  282. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  283. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  284. | --sha=* | --sh=*)
  285. sharedstatedir="$ac_optarg" ;;
  286. -site | --site | --sit)
  287. ac_prev=site ;;
  288. -site=* | --site=* | --sit=*)
  289. site="$ac_optarg" ;;
  290. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  291. ac_prev=srcdir ;;
  292. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  293. srcdir="$ac_optarg" ;;
  294. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  295. | --syscon | --sysco | --sysc | --sys | --sy)
  296. ac_prev=sysconfdir ;;
  297. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  298. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  299. sysconfdir="$ac_optarg" ;;
  300. -target | --target | --targe | --targ | --tar | --ta | --t)
  301. ac_prev=target ;;
  302. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  303. target="$ac_optarg" ;;
  304. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  305. verbose=yes ;;
  306. -version | --version | --versio | --versi | --vers)
  307. echo "configure generated by autoconf version 2.13"
  308. exit 0 ;;
  309. -with-* | --with-*)
  310. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  311. # Reject names that are not valid shell variable names.
  312. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  313. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  314. fi
  315. ac_package=`echo $ac_package| sed 's/-/_/g'`
  316. case "$ac_option" in
  317. *=*) ;;
  318. *) ac_optarg=yes ;;
  319. esac
  320. eval "with_${ac_package}='$ac_optarg'" ;;
  321. -without-* | --without-*)
  322. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  323. # Reject names that are not valid shell variable names.
  324. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  325. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  326. fi
  327. ac_package=`echo $ac_package| sed 's/-/_/g'`
  328. eval "with_${ac_package}=no" ;;
  329. --x)
  330. # Obsolete; use --with-x.
  331. with_x=yes ;;
  332. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  333. | --x-incl | --x-inc | --x-in | --x-i)
  334. ac_prev=x_includes ;;
  335. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  336. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  337. x_includes="$ac_optarg" ;;
  338. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  339. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  340. ac_prev=x_libraries ;;
  341. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  342. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  343. x_libraries="$ac_optarg" ;;
  344. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  345. ;;
  346. *)
  347. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  348. echo "configure: warning: $ac_option: invalid host type" 1>&2
  349. fi
  350. if test "x$nonopt" != xNONE; then
  351. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  352. fi
  353. nonopt="$ac_option"
  354. ;;
  355. esac
  356. done
  357. if test -n "$ac_prev"; then
  358. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  359. fi
  360. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  361. # File descriptor usage:
  362. # 0 standard input
  363. # 1 file creation
  364. # 2 errors and warnings
  365. # 3 some systems may open it to /dev/tty
  366. # 4 used on the Kubota Titan
  367. # 6 checking for... messages and results
  368. # 5 compiler messages saved in config.log
  369. if test "$silent" = yes; then
  370. exec 6>/dev/null
  371. else
  372. exec 6>&1
  373. fi
  374. exec 5>./config.log
  375. echo "\
  376. This file contains any messages produced by compilers while
  377. running configure, to aid debugging if configure makes a mistake.
  378. " 1>&5
  379. # Strip out --no-create and --no-recursion so they do not pile up.
  380. # Also quote any args containing shell metacharacters.
  381. ac_configure_args=
  382. for ac_arg
  383. do
  384. case "$ac_arg" in
  385. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  386. | --no-cr | --no-c) ;;
  387. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  388. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  389. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  390. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  391. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  392. esac
  393. done
  394. # NLS nuisances.
  395. # Only set these to C if already set. These must not be set unconditionally
  396. # because not all systems understand e.g. LANG=C (notably SCO).
  397. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  398. # Non-C LC_CTYPE values break the ctype check.
  399. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  400. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  401. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  402. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  403. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  404. rm -rf conftest* confdefs.h
  405. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  406. echo > confdefs.h
  407. # A filename unique to this package, relative to the directory that
  408. # configure is in, which we can look for to find out if srcdir is correct.
  409. ac_unique_file=src/integer/gcd/cl_I_gcd.cc
  410. # Find the source files, if location was not specified.
  411. if test -z "$srcdir"; then
  412. ac_srcdir_defaulted=yes
  413. # Try the directory containing this script, then its parent.
  414. ac_prog=$0
  415. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  416. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  417. srcdir=$ac_confdir
  418. if test ! -r $srcdir/$ac_unique_file; then
  419. srcdir=..
  420. fi
  421. else
  422. ac_srcdir_defaulted=no
  423. fi
  424. if test ! -r $srcdir/$ac_unique_file; then
  425. if test "$ac_srcdir_defaulted" = yes; then
  426. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  427. else
  428. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  429. fi
  430. fi
  431. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  432. # Prefer explicitly selected file to automatically selected ones.
  433. if test -z "$CONFIG_SITE"; then
  434. if test "x$prefix" != xNONE; then
  435. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  436. else
  437. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  438. fi
  439. fi
  440. for ac_site_file in $CONFIG_SITE; do
  441. if test -r "$ac_site_file"; then
  442. echo "loading site script $ac_site_file"
  443. . "$ac_site_file"
  444. fi
  445. done
  446. if test -r "$cache_file"; then
  447. echo "loading cache $cache_file"
  448. . $cache_file
  449. else
  450. echo "creating cache $cache_file"
  451. > $cache_file
  452. fi
  453. ac_ext=c
  454. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  455. ac_cpp='$CPP $CPPFLAGS'
  456. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  457. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  458. cross_compiling=$ac_cv_prog_cc_cross
  459. ac_exeext=
  460. ac_objext=o
  461. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  462. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  463. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  464. ac_n= ac_c='
  465. ' ac_t=' ' ac_tt=
  466. else
  467. ac_n=-n ac_c= ac_t= ac_tt='
  468. '
  469. fi
  470. else
  471. ac_n= ac_c='\c' ac_t= ac_tt='
  472. '
  473. fi
  474. echo $ac_n "checking whether ${MAKE-make} sets \$(MAKE)""... $ac_c" 1>&6
  475. echo "configure:542: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  476. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  477. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  478. echo $ac_n "(cached) $ac_c" 1>&6
  479. else
  480. cat > conftestmake <<\EOF
  481. all:
  482. @echo 'ac_maketemp="${MAKE}"'
  483. EOF
  484. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  485. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  486. if test -n "$ac_maketemp"; then
  487. eval ac_cv_prog_make_${ac_make}_set=yes
  488. else
  489. eval ac_cv_prog_make_${ac_make}_set=no
  490. fi
  491. rm -f conftestmake
  492. fi
  493. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  494. echo "$ac_t""yes" 1>&6
  495. SET_MAKE=
  496. else
  497. echo "$ac_t""no" 1>&6
  498. SET_MAKE="MAKE=${MAKE-make}"
  499. fi
  500. extrasub="$extrasub"'
  501. /@subdir@/{
  502. h
  503. g
  504. s/@subdir@/src/
  505. p
  506. g
  507. s/@subdir@/tests/
  508. p
  509. g
  510. s/@subdir@/benchmarks/
  511. p
  512. g
  513. s/@subdir@/examples/
  514. p
  515. g
  516. s/@subdir@/doc/
  517. p
  518. d
  519. }
  520. '
  521. # Extract the first word of "gcc", so it can be a program name with args.
  522. set dummy gcc; ac_word=$2
  523. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  524. echo "configure:592: checking for $ac_word" >&5
  525. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  526. echo $ac_n "(cached) $ac_c" 1>&6
  527. else
  528. if test -n "$CC"; then
  529. ac_cv_prog_CC="$CC" # Let the user override the test.
  530. else
  531. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  532. ac_dummy="$PATH"
  533. for ac_dir in $ac_dummy; do
  534. test -z "$ac_dir" && ac_dir=.
  535. if test -f $ac_dir/$ac_word; then
  536. ac_cv_prog_CC="gcc"
  537. break
  538. fi
  539. done
  540. IFS="$ac_save_ifs"
  541. fi
  542. fi
  543. CC="$ac_cv_prog_CC"
  544. if test -n "$CC"; then
  545. echo "$ac_t""$CC" 1>&6
  546. else
  547. echo "$ac_t""no" 1>&6
  548. fi
  549. if test -z "$CC"; then
  550. # Extract the first word of "cc", so it can be a program name with args.
  551. set dummy cc; ac_word=$2
  552. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  553. echo "configure:622: checking for $ac_word" >&5
  554. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  555. echo $ac_n "(cached) $ac_c" 1>&6
  556. else
  557. if test -n "$CC"; then
  558. ac_cv_prog_CC="$CC" # Let the user override the test.
  559. else
  560. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  561. ac_prog_rejected=no
  562. ac_dummy="$PATH"
  563. for ac_dir in $ac_dummy; do
  564. test -z "$ac_dir" && ac_dir=.
  565. if test -f $ac_dir/$ac_word; then
  566. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  567. ac_prog_rejected=yes
  568. continue
  569. fi
  570. ac_cv_prog_CC="cc"
  571. break
  572. fi
  573. done
  574. IFS="$ac_save_ifs"
  575. if test $ac_prog_rejected = yes; then
  576. # We found a bogon in the path, so make sure we never use it.
  577. set dummy $ac_cv_prog_CC
  578. shift
  579. if test $# -gt 0; then
  580. # We chose a different compiler from the bogus one.
  581. # However, it has the same basename, so the bogon will be chosen
  582. # first if we set CC to just the basename; use the full file name.
  583. shift
  584. set dummy "$ac_dir/$ac_word" "$@"
  585. shift
  586. ac_cv_prog_CC="$@"
  587. fi
  588. fi
  589. fi
  590. fi
  591. CC="$ac_cv_prog_CC"
  592. if test -n "$CC"; then
  593. echo "$ac_t""$CC" 1>&6
  594. else
  595. echo "$ac_t""no" 1>&6
  596. fi
  597. if test -z "$CC"; then
  598. case "`uname -s`" in
  599. *win32* | *WIN32*)
  600. # Extract the first word of "cl", so it can be a program name with args.
  601. set dummy cl; ac_word=$2
  602. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  603. echo "configure:673: checking for $ac_word" >&5
  604. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  605. echo $ac_n "(cached) $ac_c" 1>&6
  606. else
  607. if test -n "$CC"; then
  608. ac_cv_prog_CC="$CC" # Let the user override the test.
  609. else
  610. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  611. ac_dummy="$PATH"
  612. for ac_dir in $ac_dummy; do
  613. test -z "$ac_dir" && ac_dir=.
  614. if test -f $ac_dir/$ac_word; then
  615. ac_cv_prog_CC="cl"
  616. break
  617. fi
  618. done
  619. IFS="$ac_save_ifs"
  620. fi
  621. fi
  622. CC="$ac_cv_prog_CC"
  623. if test -n "$CC"; then
  624. echo "$ac_t""$CC" 1>&6
  625. else
  626. echo "$ac_t""no" 1>&6
  627. fi
  628. ;;
  629. esac
  630. fi
  631. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  632. fi
  633. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  634. echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  635. ac_ext=c
  636. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  637. ac_cpp='$CPP $CPPFLAGS'
  638. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  639. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  640. cross_compiling=$ac_cv_prog_cc_cross
  641. cat > conftest.$ac_ext << EOF
  642. #line 716 "configure"
  643. #include "confdefs.h"
  644. int main(){return(0);}
  645. EOF
  646. if { (eval echo configure:721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  647. ac_cv_prog_cc_works=yes
  648. # If we can't run a trivial program, we are probably using a cross compiler.
  649. if (./conftest; exit) 2>/dev/null; then
  650. ac_cv_prog_cc_cross=no
  651. else
  652. ac_cv_prog_cc_cross=yes
  653. fi
  654. else
  655. echo "configure: failed program was:" >&5
  656. cat conftest.$ac_ext >&5
  657. ac_cv_prog_cc_works=no
  658. fi
  659. rm -fr conftest*
  660. ac_ext=c
  661. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  662. ac_cpp='$CPP $CPPFLAGS'
  663. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  664. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  665. cross_compiling=$ac_cv_prog_cc_cross
  666. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  667. if test $ac_cv_prog_cc_works = no; then
  668. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  669. fi
  670. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  671. echo "configure:747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  672. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  673. cross_compiling=$ac_cv_prog_cc_cross
  674. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  675. echo "configure:752: checking whether we are using GNU C" >&5
  676. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  677. echo $ac_n "(cached) $ac_c" 1>&6
  678. else
  679. cat > conftest.c <<EOF
  680. #ifdef __GNUC__
  681. yes;
  682. #endif
  683. EOF
  684. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  685. ac_cv_prog_gcc=yes
  686. else
  687. ac_cv_prog_gcc=no
  688. fi
  689. fi
  690. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  691. if test $ac_cv_prog_gcc = yes; then
  692. GCC=yes
  693. else
  694. GCC=
  695. fi
  696. ac_test_CFLAGS="${CFLAGS+set}"
  697. ac_save_CFLAGS="$CFLAGS"
  698. CFLAGS=
  699. if test "$ac_test_CFLAGS" = set; then
  700. CFLAGS="$ac_save_CFLAGS"
  701. else
  702. if test "$GCC" = yes; then
  703. # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
  704. # that results from __OPTIMIZE__ being defined for CC but not CPP.
  705. if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then
  706. : # already optimizing
  707. else
  708. CC="$CC -O"
  709. ac_cv_prog_CC="$CC"
  710. fi
  711. else
  712. CFLAGS=
  713. fi
  714. fi
  715. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  716. echo "configure:796: checking how to run the C preprocessor" >&5
  717. # On Suns, sometimes $CPP names a directory.
  718. if test -n "$CPP" && test -d "$CPP"; then
  719. CPP=
  720. fi
  721. if test -z "$CPP"; then
  722. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  723. echo $ac_n "(cached) $ac_c" 1>&6
  724. else
  725. # This must be in double quotes, not single quotes, because CPP may get
  726. # substituted into the Makefile and "${CC-cc}" will confuse make.
  727. CPP="${CC-cc} -E"
  728. if test -n "$GCC"; then
  729. # Suppress warning messages.
  730. CPP="$CPP -w"
  731. fi
  732. # On the NeXT, cc -E runs the code through the compiler's parser,
  733. # not just through cpp. On NeXTstep 3.1 the same holds for /lib/cpp; use
  734. # "cc -E -traditional-cpp" instead.
  735. cat > conftest.$ac_ext <<EOF
  736. #line 816 "configure"
  737. #include "confdefs.h"
  738. #include <assert.h>
  739. Syntax Error
  740. EOF
  741. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  742. { (eval echo configure:822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  743. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  744. if test -z "$ac_err"; then
  745. rm -rf conftest*
  746. ac_have_cpp=1
  747. else
  748. echo "$ac_err" >&5
  749. echo "configure: failed program was:" >&5
  750. cat conftest.$ac_ext >&5
  751. fi
  752. rm -f conftest*
  753. if test -z "$ac_have_cpp"; then
  754. CPP="${CC-cc} -E -traditional-cpp"
  755. cat > conftest.$ac_ext <<EOF
  756. #line 836 "configure"
  757. #include "confdefs.h"
  758. #include <assert.h>
  759. Syntax Error
  760. EOF
  761. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  762. { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  763. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  764. if test -z "$ac_err"; then
  765. rm -rf conftest*
  766. ac_have_cpp=1
  767. else
  768. echo "$ac_err" >&5
  769. echo "configure: failed program was:" >&5
  770. cat conftest.$ac_ext >&5
  771. fi
  772. rm -f conftest*
  773. if test -n "$ac_have_cpp"; then
  774. CC="${CC-cc} -traditional-cpp"
  775. else
  776. CPP="${CC-cc} -nologo -E"
  777. cat > conftest.$ac_ext <<EOF
  778. #line 858 "configure"
  779. #include "confdefs.h"
  780. #include <assert.h>
  781. Syntax Error
  782. EOF
  783. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  784. { (eval echo configure:864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  785. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  786. if test -z "$ac_err"; then
  787. rm -rf conftest*
  788. ac_have_cpp=1
  789. else
  790. echo "$ac_err" >&5
  791. echo "configure: failed program was:" >&5
  792. cat conftest.$ac_ext >&5
  793. fi
  794. rm -f conftest*
  795. if test -n "$ac_have_cpp"; then
  796. CC="${CC-cc} -nologo"
  797. else
  798. CPP=/lib/cpp
  799. fi
  800. fi
  801. fi
  802. ac_cv_prog_CC="$CC"
  803. ac_cv_prog_CPP="$CPP"
  804. fi
  805. CPP="$ac_cv_prog_CPP"
  806. else
  807. ac_cv_prog_CPP="$CPP"
  808. fi
  809. echo "$ac_t""$CPP" 1>&6
  810. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  811. do
  812. # Extract the first word of "$ac_prog", so it can be a program name with args.
  813. set dummy $ac_prog; ac_word=$2
  814. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  815. echo "configure:896: checking for $ac_word" >&5
  816. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  817. echo $ac_n "(cached) $ac_c" 1>&6
  818. else
  819. if test -n "$CXX"; then
  820. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  821. else
  822. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  823. ac_dummy="$PATH"
  824. for ac_dir in $ac_dummy; do
  825. test -z "$ac_dir" && ac_dir=.
  826. if test -f $ac_dir/$ac_word; then
  827. ac_cv_prog_CXX="$ac_prog"
  828. break
  829. fi
  830. done
  831. IFS="$ac_save_ifs"
  832. fi
  833. fi
  834. CXX="$ac_cv_prog_CXX"
  835. if test -n "$CXX"; then
  836. echo "$ac_t""$CXX" 1>&6
  837. else
  838. echo "$ac_t""no" 1>&6
  839. fi
  840. test -n "$CXX" && break
  841. done
  842. test -n "$CXX" || CXX="gcc"
  843. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  844. echo "configure:928: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  845. ac_ext=C
  846. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  847. ac_cpp='$CXXCPP $CPPFLAGS'
  848. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  849. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  850. cross_compiling=$ac_cv_prog_cxx_cross
  851. cat > conftest.$ac_ext << EOF
  852. #line 939 "configure"
  853. #include "confdefs.h"
  854. int main(){return(0);}
  855. EOF
  856. if { (eval echo configure:944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  857. ac_cv_prog_cxx_works=yes
  858. # If we can't run a trivial program, we are probably using a cross compiler.
  859. if (./conftest; exit) 2>/dev/null; then
  860. ac_cv_prog_cxx_cross=no
  861. else
  862. ac_cv_prog_cxx_cross=yes
  863. fi
  864. else
  865. echo "configure: failed program was:" >&5
  866. cat conftest.$ac_ext >&5
  867. ac_cv_prog_cxx_works=no
  868. fi
  869. rm -fr conftest*
  870. ac_ext=c
  871. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  872. ac_cpp='$CPP $CPPFLAGS'
  873. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  874. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  875. cross_compiling=$ac_cv_prog_cc_cross
  876. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  877. if test $ac_cv_prog_cxx_works = no; then
  878. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  879. fi
  880. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  881. echo "configure:970: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  882. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  883. cross_compiling=$ac_cv_prog_cxx_cross
  884. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  885. echo "configure:975: checking whether we are using GNU C++" >&5
  886. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  887. echo $ac_n "(cached) $ac_c" 1>&6
  888. else
  889. cat > conftest.C <<EOF
  890. #ifdef __GNUC__
  891. yes;
  892. #endif
  893. EOF
  894. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  895. ac_cv_prog_gxx=yes
  896. else
  897. ac_cv_prog_gxx=no
  898. fi
  899. fi
  900. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  901. if test $ac_cv_prog_gxx = yes; then
  902. GXX=yes
  903. else
  904. GXX=
  905. fi
  906. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  907. ac_save_CXXFLAGS="$CXXFLAGS"
  908. CXXFLAGS=
  909. if test "$ac_test_CXXFLAGS" = set; then
  910. CXXFLAGS="$ac_save_CXXFLAGS"
  911. else
  912. if test "$GXX" = yes; then
  913. # Add "-O" to both the CXX and CXXCPP commands, to eliminate possible confu-
  914. # sion that results from __OPTIMIZE__ being defined for CXX but not CXXCPP.
  915. if echo "$CXX " | grep ' -O[1-9 ]' > /dev/null; then
  916. : # already optimizing
  917. else
  918. CXX="$CXX -O"
  919. ac_cv_prog_CXX="$CXX"
  920. fi
  921. else
  922. CXXFLAGS=
  923. fi
  924. fi
  925. echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
  926. echo "configure:1019: checking how to run the C++ preprocessor" >&5
  927. if test -z "$CXXCPP"; then
  928. if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  929. echo $ac_n "(cached) $ac_c" 1>&6
  930. else
  931. ac_ext=C
  932. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  933. ac_cpp='$CXXCPP $CPPFLAGS'
  934. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  935. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  936. cross_compiling=$ac_cv_prog_cxx_cross
  937. CXXCPP="${CXX-g++} -E"
  938. cat > conftest.$ac_ext <<EOF
  939. #line 1032 "configure"
  940. #include "confdefs.h"
  941. #include <stdlib.h>
  942. EOF
  943. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  944. { (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  945. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  946. if test -z "$ac_err"; then
  947. :
  948. else
  949. echo "$ac_err" >&5
  950. echo "configure: failed program was:" >&5
  951. cat conftest.$ac_ext >&5
  952. rm -rf conftest*
  953. CXXCPP=/lib/cpp
  954. fi
  955. rm -f conftest*
  956. ac_cv_prog_CXXCPP="$CXXCPP"
  957. ac_ext=c
  958. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  959. ac_cpp='$CPP $CPPFLAGS'
  960. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  961. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  962. cross_compiling=$ac_cv_prog_cc_cross
  963. fi
  964. fi
  965. CXXCPP="$ac_cv_prog_CXXCPP"
  966. echo "$ac_t""$CXXCPP" 1>&6
  967. echo $ac_n "checking for underscore in external names""... $ac_c" 1>&6
  968. echo "configure:1063: checking for underscore in external names" >&5
  969. if eval "test \"`echo '$''{'cl_cv_prog_as_underscore'+set}'`\" = set"; then
  970. echo $ac_n "(cached) $ac_c" 1>&6
  971. else
  972. cat > conftest.c <<EOF
  973. int foo() { return 0; }
  974. EOF
  975. # look for the assembly language name in the .s file
  976. { ac_try='${CC-cc} -S conftest.c'; { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1
  977. if grep _foo conftest.s >/dev/null ; then
  978. cl_cv_prog_as_underscore=yes
  979. else
  980. cl_cv_prog_as_underscore=no
  981. fi
  982. rm -f conftest*
  983. fi
  984. echo "$ac_t""$cl_cv_prog_as_underscore" 1>&6
  985. if test $cl_cv_prog_as_underscore = yes; then
  986. AS_UNDERSCORE=true
  987. cat >> confdefs.h <<\EOF
  988. #define ASM_UNDERSCORE 1
  989. EOF
  990. else
  991. AS_UNDERSCORE=false
  992. fi
  993. # Extract the first word of "ranlib", so it can be a program name with args.
  994. set dummy ranlib; ac_word=$2
  995. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  996. echo "configure:1095: checking for $ac_word" >&5
  997. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  998. echo $ac_n "(cached) $ac_c" 1>&6
  999. else
  1000. if test -n "$RANLIB"; then
  1001. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1002. else
  1003. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1004. ac_dummy="$PATH"
  1005. for ac_dir in $ac_dummy; do
  1006. test -z "$ac_dir" && ac_dir=.
  1007. if test -f $ac_dir/$ac_word; then
  1008. ac_cv_prog_RANLIB="ranlib"
  1009. break
  1010. fi
  1011. done
  1012. IFS="$ac_save_ifs"
  1013. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
  1014. fi
  1015. fi
  1016. RANLIB="$ac_cv_prog_RANLIB"
  1017. if test -n "$RANLIB"; then
  1018. echo "$ac_t""$RANLIB" 1>&6
  1019. else
  1020. echo "$ac_t""no" 1>&6
  1021. fi
  1022. # Find a good install program. We prefer a C program (faster),
  1023. # so one script is as good as another. But avoid the broken or
  1024. # incompatible versions:
  1025. # SysV /etc/install, /usr/sbin/install
  1026. # SunOS /usr/etc/install
  1027. # IRIX /sbin/install
  1028. # AIX /bin/install
  1029. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1030. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1031. # ./install, which can be erroneously created by make from ./install.sh.
  1032. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1033. echo "configure:1133: checking for a BSD compatible install" >&5
  1034. if test -z "$INSTALL"; then
  1035. if eval "test \"`echo '$''{'cl_cv_path_install'+set}'`\" = set"; then
  1036. echo $ac_n "(cached) $ac_c" 1>&6
  1037. else
  1038. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1039. for ac_dir in $PATH; do
  1040. # Account for people who put trailing slashes in PATH elements.
  1041. case "$ac_dir/" in
  1042. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1043. *)
  1044. # OSF1 and SCO ODT 3.0 have their own names for install.
  1045. for ac_prog in ginstall installbsd scoinst install; do
  1046. if test -f $ac_dir/$ac_prog; then
  1047. if test $ac_prog = install &&
  1048. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1049. # AIX install. It has an incompatible calling convention.
  1050. # OSF/1 installbsd also uses dspmsg, but is usable.
  1051. :
  1052. else
  1053. if test $ac_prog = installbsd &&
  1054. grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then
  1055. # AIX installbsd doesn't work without option "-g".
  1056. :
  1057. else
  1058. cl_cv_path_install="$ac_dir/$ac_prog -c"
  1059. break 2
  1060. fi
  1061. fi
  1062. fi
  1063. done
  1064. ;;
  1065. esac
  1066. done
  1067. IFS="$ac_save_ifs"
  1068. # As a last resort, use cp.
  1069. test -z "$cl_cv_path_install" && cl_cv_path_install="cp"
  1070. fi
  1071. INSTALL="$cl_cv_path_install"
  1072. fi
  1073. echo "$ac_t""$INSTALL" 1>&6
  1074. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1075. # It thinks the first close brace ends the variable substitution.
  1076. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
  1077. if test -z "$INSTALL_DATA"; then
  1078. case "$INSTALL" in
  1079. cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
  1080. * ) INSTALL_DATA='$(INSTALL) -m 644' ;;
  1081. esac
  1082. fi
  1083. ac_aux_dir=${srcdir}/autoconf
  1084. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1085. echo "configure:1187: checking host system type" >&5
  1086. if eval "test \"`echo '$''{'cl_cv_host'+set}'`\" = set"; then
  1087. echo $ac_n "(cached) $ac_c" 1>&6
  1088. else
  1089. ac_config_guess=$ac_aux_dir/config.guess
  1090. ac_config_sub=$ac_aux_dir/config.sub
  1091. # Make sure we can run config.sub.
  1092. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  1093. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1094. fi
  1095. host_alias=$host
  1096. case "$host_alias" in
  1097. NONE)
  1098. case $nonopt in
  1099. NONE) host_alias=`export CC; $ac_config_guess` ;;
  1100. *) host_alias=$nonopt ;;
  1101. esac ;;
  1102. esac
  1103. # Don't fail just because the system is not listed in GNU's database.
  1104. if test -n "$host_alias"; then
  1105. host=`$ac_config_sub $host_alias`
  1106. else
  1107. host=unknown-unknown-unknown
  1108. fi
  1109. cl_cv_host="$host"
  1110. fi
  1111. echo "$ac_t""$cl_cv_host" 1>&6
  1112. host="$cl_cv_host"
  1113. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1114. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1115. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1116. case "$host_cpu" in
  1117. i[4567]86 )
  1118. host_cpu=i386
  1119. ;;
  1120. alphaev[4-7] | alphaev56 | alphapca5[67] )
  1121. host_cpu=alpha
  1122. ;;
  1123. hppa1.0 | hppa1.1 | hppa2.0 )
  1124. host_cpu=hppa
  1125. ;;
  1126. powerpc )
  1127. host_cpu=rs6000
  1128. ;;
  1129. c1 | c2 | c32 | c34 | c38 | c4 )
  1130. host_cpu=convex
  1131. ;;
  1132. mips )
  1133. echo $ac_n "checking for 64-bit MIPS""... $ac_c" 1>&6
  1134. echo "configure:1240: checking for 64-bit MIPS" >&5
  1135. if eval "test \"`echo '$''{'cl_cv_host_mips64'+set}'`\" = set"; then
  1136. echo $ac_n "(cached) $ac_c" 1>&6
  1137. else
  1138. cat > conftest.$ac_ext <<EOF
  1139. #line 1246 "configure"
  1140. #include "confdefs.h"
  1141. #if defined(_MIPS_SZLONG)
  1142. #if (_MIPS_SZLONG == 64)
  1143. /* We should also check for (_MIPS_SZPTR == 64), but gcc keeps this at 32. */
  1144. yes
  1145. #endif
  1146. #endif
  1147. EOF
  1148. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1149. egrep "yes" >/dev/null 2>&1; then
  1150. rm -rf conftest*
  1151. cl_cv_host_mips64=yes
  1152. else
  1153. rm -rf conftest*
  1154. cl_cv_host_mips64=no
  1155. fi
  1156. rm -f conftest*
  1157. fi
  1158. echo "$ac_t""$cl_cv_host_mips64" 1>&6
  1159. if test $cl_cv_host_mips64 = yes; then
  1160. host_cpu=mips64
  1161. fi
  1162. ;;
  1163. sparc | sparc64 )
  1164. echo $ac_n "checking for 64-bit SPARC""... $ac_c" 1>&6
  1165. echo "configure:1275: checking for 64-bit SPARC" >&5
  1166. if eval "test \"`echo '$''{'cl_cv_host_sparc64'+set}'`\" = set"; then
  1167. echo $ac_n "(cached) $ac_c" 1>&6
  1168. else
  1169. cat > conftest.$ac_ext <<EOF
  1170. #line 1281 "configure"
  1171. #include "confdefs.h"
  1172. #if defined(__sparcv9) || defined(__arch64__)
  1173. yes
  1174. #endif
  1175. EOF
  1176. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1177. egrep "yes" >/dev/null 2>&1; then
  1178. rm -rf conftest*
  1179. cl_cv_host_sparc64=yes
  1180. else
  1181. rm -rf conftest*
  1182. cl_cv_host_sparc64=no
  1183. fi
  1184. rm -f conftest*
  1185. fi
  1186. echo "$ac_t""$cl_cv_host_sparc64" 1>&6
  1187. if test $cl_cv_host_sparc64 = yes; then
  1188. host_cpu=sparc64
  1189. else
  1190. host_cpu=sparc
  1191. fi
  1192. ;;
  1193. esac
  1194. cat >> confdefs.h <<EOF
  1195. #ifndef __${host_cpu}__
  1196. #define __${host_cpu}__ 1
  1197. #endif
  1198. EOF
  1199. LIBS=-lm
  1200. PACKAGE=cln
  1201. # Check whether --enable-shared or --disable-shared was given.
  1202. if test "${enable_shared+set}" = set; then
  1203. enableval="$enable_shared"
  1204. p=${PACKAGE-default}
  1205. case "$enableval" in
  1206. yes) enable_shared=yes ;;
  1207. no) enable_shared=no ;;
  1208. *)
  1209. enable_shared=no
  1210. # Look at the argument we got. We use all the common list separators.
  1211. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1212. for pkg in $enableval; do
  1213. if test "X$pkg" = "X$p"; then
  1214. enable_shared=yes
  1215. fi
  1216. done
  1217. IFS="$ac_save_ifs"
  1218. ;;
  1219. esac
  1220. else
  1221. enable_shared=yes
  1222. fi
  1223. # Check whether --enable-static or --disable-static was given.
  1224. if test "${enable_static+set}" = set; then
  1225. enableval="$enable_static"
  1226. p=${PACKAGE-default}
  1227. case "$enableval" in
  1228. yes) enable_static=yes ;;
  1229. no) enable_static=no ;;
  1230. *)
  1231. enable_static=no
  1232. # Look at the argument we got. We use all the common list separators.
  1233. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1234. for pkg in $enableval; do
  1235. if test "X$pkg" = "X$p"; then
  1236. enable_static=yes
  1237. fi
  1238. done
  1239. IFS="$ac_save_ifs"
  1240. ;;
  1241. esac
  1242. else
  1243. enable_static=yes
  1244. fi
  1245. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1246. if test "${with_gnu_ld+set}" = set; then
  1247. withval="$with_gnu_ld"
  1248. test "$withval" = no || with_gnu_ld=yes
  1249. else
  1250. with_gnu_ld=no
  1251. fi
  1252. ac_prog=ld
  1253. if test "$ac_cv_prog_gcc" = yes; then
  1254. # Check if gcc -print-prog-name=ld gives a path.
  1255. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1256. echo "configure:1375: checking for ld used by GCC" >&5
  1257. ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1258. case "$ac_prog" in
  1259. # Accept absolute paths.
  1260. /* | A-Za-z:\\*)
  1261. test -z "$LD" && LD="$ac_prog"
  1262. ;;
  1263. "")
  1264. # If it fails, then pretend we aren't using GCC.
  1265. ac_prog=ld
  1266. ;;
  1267. *)
  1268. # If it is relative, then search for the first ld in PATH.
  1269. with_gnu_ld=unknown
  1270. ;;
  1271. esac
  1272. elif test "$with_gnu_ld" = yes; then
  1273. echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1274. echo "configure:1393: checking for GNU ld" >&5
  1275. else
  1276. echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1277. echo "configure:1396: checking for non-GNU ld" >&5
  1278. fi
  1279. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1280. echo $ac_n "(cached) $ac_c" 1>&6
  1281. else
  1282. if test -z "$LD"; then
  1283. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1284. for ac_dir in $PATH; do
  1285. test -z "$ac_dir" && ac_dir=.
  1286. if test -f "$ac_dir/$ac_prog"; then
  1287. ac_cv_path_LD="$ac_dir/$ac_prog"
  1288. # Check to see if the program is GNU ld. I'd rather use --version,
  1289. # but apparently some GNU ld's only accept -v.
  1290. # Break only if it was the GNU/non-GNU ld that we prefer.
  1291. if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1292. test "$with_gnu_ld" != no && break
  1293. else
  1294. test "$with_gnu_ld" != yes && break
  1295. fi
  1296. fi
  1297. done
  1298. IFS="$ac_save_ifs"
  1299. else
  1300. ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1301. fi
  1302. fi
  1303. LD="$ac_cv_path_LD"
  1304. if test -n "$LD"; then
  1305. echo "$ac_t""$LD" 1>&6
  1306. else
  1307. echo "$ac_t""no" 1>&6
  1308. fi
  1309. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1310. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1311. echo "configure:1432: checking if the linker ($LD) is GNU ld" >&5
  1312. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1313. echo $ac_n "(cached) $ac_c" 1>&6
  1314. else
  1315. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1316. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1317. ac_cv_prog_gnu_ld=yes
  1318. else
  1319. ac_cv_prog_gnu_ld=no
  1320. fi
  1321. fi
  1322. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1323. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1324. echo "configure:1447: checking for BSD-compatible nm" >&5
  1325. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1326. echo $ac_n "(cached) $ac_c" 1>&6
  1327. else
  1328. case "$NM" in
  1329. /* | A-Za-z:\\*)
  1330. ac_cv_path_NM="$NM" # Let the user override the test with a path.
  1331. ;;
  1332. *)
  1333. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1334. for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
  1335. test -z "$ac_dir" && ac_dir=.
  1336. if test -f $ac_dir/nm; then
  1337. # Check to see if the nm accepts a BSD-compat flag.
  1338. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1339. # nm: unknown option "B" ignored
  1340. if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1341. ac_cv_path_NM="$ac_dir/nm -B"
  1342. elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1343. ac_cv_path_NM="$ac_dir/nm -p"
  1344. else
  1345. ac_cv_path_NM="$ac_dir/nm"
  1346. fi
  1347. break
  1348. fi
  1349. done
  1350. IFS="$ac_save_ifs"
  1351. test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1352. ;;
  1353. esac
  1354. fi
  1355. NM="$ac_cv_path_NM"
  1356. echo "$ac_t""$NM" 1>&6
  1357. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1358. echo "configure:1484: checking whether ln -s works" >&5
  1359. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1360. echo $ac_n "(cached) $ac_c" 1>&6
  1361. else
  1362. rm -f conftestdata
  1363. if ln -s X conftestdata 2>/dev/null
  1364. then
  1365. rm -f conftestdata
  1366. ac_cv_prog_LN_S="ln -s"
  1367. else
  1368. ac_cv_prog_LN_S=ln
  1369. fi
  1370. fi
  1371. LN_S="$ac_cv_prog_LN_S"
  1372. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1373. echo "$ac_t""yes" 1>&6
  1374. else
  1375. echo "$ac_t""no" 1>&6
  1376. fi
  1377. # Always use our own libtool.
  1378. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1379. # Check for any special flags to pass to ltconfig.
  1380. libtool_flags=
  1381. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1382. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1383. test "$silent" = yes && libtool_flags="$libtool_flags --silent"
  1384. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1385. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1386. # Some flags need to be propagated to the compiler or linker for good
  1387. # libtool support.
  1388. case "$host" in
  1389. *-*-irix6*)
  1390. # Find out which ABI we are using.
  1391. echo '#line 1520 "configure"' > conftest.$ac_ext
  1392. if { (eval echo configure:1521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1393. case "`/usr/bin/file conftest.o`" in
  1394. *32-bit*)
  1395. LD="${LD-ld} -32"
  1396. ;;
  1397. *N32*)
  1398. LD="${LD-ld} -n32"
  1399. ;;
  1400. *64-bit*)
  1401. LD="${LD-ld} -64"
  1402. ;;
  1403. esac
  1404. fi
  1405. rm -rf conftest*
  1406. ;;
  1407. *-*-sco3.2v5*)
  1408. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1409. CFLAGS="$CFLAGS -belf"
  1410. ;;
  1411. esac
  1412. # Actually configure libtool. ac_aux_dir is where install-sh is found.
  1413. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1414. LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
  1415. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
  1416. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
  1417. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1418. CL_CURRENT=1
  1419. CL_REVISION=0
  1420. CL_AGE=0
  1421. CL_VERSION_MAJOR=1
  1422. CL_VERSION_MINOR=1
  1423. CL_VERSION_PATCHLEVEL=0
  1424. cat >> confdefs.h <<EOF
  1425. #define CL_VERSION_MAJOR $CL_VERSION_MAJOR
  1426. EOF
  1427. cat >> confdefs.h <<EOF
  1428. #define CL_VERSION_MINOR $CL_VERSION_MINOR
  1429. EOF
  1430. cat >> confdefs.h <<EOF
  1431. #define CL_VERSION_PATCHLEVEL $CL_VERSION_PATCHLEVEL
  1432. EOF
  1433. CL_VERSION=$CL_VERSION_MAJOR.$CL_VERSION_MINOR.$CL_VERSION_PATCHLEVEL
  1434. cat >> confdefs.h <<EOF
  1435. #define CL_VERSION $CL_VERSION
  1436. EOF
  1437. ac_ext=C
  1438. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1439. ac_cpp='$CXXCPP $CPPFLAGS'
  1440. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1441. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1442. cross_compiling=$ac_cv_prog_cxx_cross
  1443. ac_ext=C
  1444. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1445. ac_cpp='$CXXCPP $CPPFLAGS'
  1446. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1447. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1448. cross_compiling=$ac_cv_prog_cxx_cross
  1449. echo $ac_n "checking for bool type""... $ac_c" 1>&6
  1450. echo "configure:1595: checking for bool type" >&5
  1451. if eval "test \"`echo '$''{'cl_cv_cplusplus_bool'+set}'`\" = set"; then
  1452. echo $ac_n "(cached) $ac_c" 1>&6
  1453. else
  1454. cat > conftest.$ac_ext <<EOF
  1455. #line 1601 "configure"
  1456. #include "confdefs.h"
  1457. int main() {
  1458. bool x;
  1459. ; return 0; }
  1460. EOF
  1461. if { (eval echo configure:1608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1462. rm -rf conftest*
  1463. cl_cv_cplusplus_bool=yes
  1464. else
  1465. echo "configure: failed program was:" >&5
  1466. cat conftest.$ac_ext >&5
  1467. rm -rf conftest*
  1468. cl_cv_cplusplus_bool=no
  1469. fi
  1470. rm -f conftest*
  1471. fi
  1472. echo "$ac_t""$cl_cv_cplusplus_bool" 1>&6
  1473. if test $cl_cv_cplusplus_bool = yes; then
  1474. cat >> confdefs.h <<\EOF
  1475. #define HAVE_BOOL 1
  1476. EOF
  1477. else
  1478. cat >> confdefs.h <<\EOF
  1479. #define bool int
  1480. EOF
  1481. fi
  1482. ac_ext=C
  1483. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1484. ac_cpp='$CXXCPP $CPPFLAGS'
  1485. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1486. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1487. cross_compiling=$ac_cv_prog_cxx_cross
  1488. echo $ac_n "checking for long long type""... $ac_c" 1>&6
  1489. echo "configure:1642: checking for long long type" >&5
  1490. if eval "test \"`echo '$''{'cl_cv_c_longlong'+set}'`\" = set"; then
  1491. echo $ac_n "(cached) $ac_c" 1>&6
  1492. else
  1493. if test "$cross_compiling" = yes; then
  1494. cl_cv_c_longlong="guessing no"
  1495. else
  1496. cat > conftest.$ac_ext <<EOF
  1497. #line 1651 "configure"
  1498. #include "confdefs.h"
  1499. #ifdef __cplusplus
  1500. extern "C" void exit(int);
  1501. #endif
  1502. int main()
  1503. {
  1504. /* long longs don't work right with gcc-2.7.2 on m68k */
  1505. /* long longs don't work right with gcc-2.7.2 on rs6000: avcall/tests.c gets
  1506. miscompiled. */
  1507. #ifdef __GNUC__
  1508. #if defined(__m68k__) || (defined(_IBMR2) || defined(__powerpc))
  1509. #if (__GNUC__ == 2)
  1510. #if (__GNUC_MINOR__ <= 7)
  1511. exit(1);
  1512. #endif
  1513. #endif
  1514. #endif
  1515. #endif
  1516. { long x = 944938507; long y = 737962842; long z = 162359677;
  1517. exit(!(((long long) x)*((long long) y)>>32 == z));
  1518. }
  1519. }
  1520. EOF
  1521. if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1522. then
  1523. cl_cv_c_longlong=yes
  1524. else
  1525. echo "configure: failed program was:" >&5
  1526. cat conftest.$ac_ext >&5
  1527. rm -fr conftest*
  1528. cl_cv_c_longlong=no
  1529. fi
  1530. if test -f core; then
  1531. coredir=core`/bin/sh -c 'echo $$'`
  1532. mkdir $coredir
  1533. cp confdefs.h $coredir/confdefs.h
  1534. mv conftest.c $coredir/conftest.c
  1535. mv conftest $coredir/conftest
  1536. mv core $coredir/core
  1537. echo "warning: test program dumped core -- see subdirectory $coredir"
  1538. fi
  1539. rm -fr conftest*
  1540. fi
  1541. fi
  1542. echo "$ac_t""$cl_cv_c_longlong" 1>&6
  1543. case "$cl_cv_c_longlong" in
  1544. *yes) cat >> confdefs.h <<\EOF
  1545. #define HAVE_LONGLONG 1
  1546. EOF
  1547. ;;
  1548. *no) ;;
  1549. esac
  1550. echo $ac_n "checking for long double type""... $ac_c" 1>&6
  1551. echo "configure:1708: checking for long double type" >&5
  1552. if eval "test \"`echo '$''{'cl_cv_c_longdouble'+set}'`\" = set"; then
  1553. echo $ac_n "(cached) $ac_c" 1>&6
  1554. else
  1555. if test "$cross_compiling" = yes; then
  1556. cl_cv_c_longdouble="guessing no"
  1557. else
  1558. cat > conftest.$ac_ext <<EOF
  1559. #line 1717 "configure"
  1560. #include "confdefs.h"
  1561. #ifdef __cplusplus
  1562. extern "C" void exit(int);
  1563. #endif
  1564. int main()
  1565. { long double x = 2.7182818284590452354L; x = x*x; exit (x==0.0L); }
  1566. EOF
  1567. if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1568. then
  1569. cl_cv_c_longdouble=yes
  1570. else
  1571. echo "configure: failed program was:" >&5
  1572. cat conftest.$ac_ext >&5
  1573. rm -fr conftest*
  1574. cl_cv_c_longdouble=no
  1575. fi
  1576. if test -f core; then
  1577. coredir=core`/bin/sh -c 'echo $$'`
  1578. mkdir $coredir
  1579. cp confdefs.h $coredir/confdefs.h
  1580. mv conftest.c $coredir/conftest.c
  1581. mv conftest $coredir/conftest
  1582. mv core $coredir/core
  1583. echo "warning: test program dumped core -- see subdirectory $coredir"
  1584. fi
  1585. rm -fr conftest*
  1586. fi
  1587. fi
  1588. echo "$ac_t""$cl_cv_c_longdouble" 1>&6
  1589. case "$cl_cv_c_longdouble" in
  1590. *yes) cat >> confdefs.h <<\EOF
  1591. #define HAVE_LONGDOUBLE 1
  1592. EOF
  1593. ;;
  1594. *no) ;;
  1595. esac
  1596. echo $ac_n "checking for working template<>""... $ac_c" 1>&6
  1597. echo "configure:1758: checking for working template<>" >&5
  1598. if eval "test \"`echo '$''{'cl_cv_c_templatenull'+set}'`\" = set"; then
  1599. echo $ac_n "(cached) $ac_c" 1>&6
  1600. else
  1601. cat > conftest.$ac_ext <<EOF
  1602. #line 1764 "configure"
  1603. #include "confdefs.h"
  1604. template <class T> class c {}; template <> class c<int> { int x; };
  1605. int main() {
  1606. ; return 0; }
  1607. EOF
  1608. if { (eval echo configure:1771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1609. rm -rf conftest*
  1610. cl_cv_c_templatenull=yes
  1611. else
  1612. echo "configure: failed program was:" >&5
  1613. cat conftest.$ac_ext >&5
  1614. rm -rf conftest*
  1615. cl_cv_c_templatenull=no
  1616. fi
  1617. rm -f conftest*
  1618. fi
  1619. echo "$ac_t""$cl_cv_c_templatenull" 1>&6
  1620. if test $cl_cv_c_templatenull = yes; then
  1621. cat >> confdefs.h <<\EOF
  1622. #define HAVE_TEMPLATE_NULL 1
  1623. EOF
  1624. fi
  1625. if test -n "$GCC"; then
  1626. echo $ac_n "checking for the global constructors function prefix""... $ac_c" 1>&6
  1627. echo "configure:1795: checking for the global constructors function prefix" >&5
  1628. if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorprefix'+set}'`\" = set"; then
  1629. echo $ac_n "(cached) $ac_c" 1>&6
  1630. else
  1631. cat > conftest.cc << EOF
  1632. struct foo { foo (); };
  1633. foo foobar;
  1634. EOF
  1635. # look for the assembly language name in the .s file
  1636. { ac_try='${CXX-g++} $CXXFLAGS -S conftest.cc'; { (eval echo configure:1805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1
  1637. if grep '_GLOBAL_\$I\$foobar' conftest.s >/dev/null ; then
  1638. cl_cv_cplusplus_ctorprefix='_GLOBAL_$I$'
  1639. else
  1640. if grep '_GLOBAL_\.I\.foobar' conftest.s >/dev/null ; then
  1641. cl_cv_cplusplus_ctorprefix='_GLOBAL_.I.'
  1642. else
  1643. if grep '_GLOBAL__I_foobar' conftest.s >/dev/null ; then
  1644. cl_cv_cplusplus_ctorprefix='_GLOBAL__I_'
  1645. else
  1646. cl_cv_cplusplus_ctorprefix=unknown
  1647. fi
  1648. fi
  1649. fi
  1650. rm -f conftest*
  1651. fi
  1652. echo "$ac_t""$cl_cv_cplusplus_ctorprefix" 1>&6
  1653. if test "$cl_cv_cplusplus_ctorprefix" '!=' unknown; then
  1654. ac_value='"'"$cl_cv_cplusplus_ctorprefix"'"'
  1655. cat >> confdefs.h <<EOF
  1656. #define CL_GLOBAL_CONSTRUCTOR_PREFIX $ac_value
  1657. EOF
  1658. ac_value=`echo "$ac_value" | sed -e 's,I,D,'`
  1659. cat >> confdefs.h <<EOF
  1660. #define CL_GLOBAL_DESTRUCTOR_PREFIX $ac_value
  1661. EOF
  1662. echo $ac_n "checking whether the global constructors function need to be exported""... $ac_c" 1>&6
  1663. echo "configure:1835: checking whether the global constructors function need to be exported" >&5
  1664. if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorexport'+set}'`\" = set"; then
  1665. echo $ac_n "(cached) $ac_c" 1>&6
  1666. else
  1667. cat > conftest1.cc << EOF
  1668. struct foo { foo (); };
  1669. foo foobar;
  1670. EOF
  1671. cat > conftest2.cc << EOF
  1672. #include "confdefs.h"
  1673. #ifdef ASM_UNDERSCORE
  1674. #define ASM_UNDERSCORE_PREFIX "_"
  1675. #else
  1676. #define ASM_UNDERSCORE_PREFIX ""
  1677. #endif
  1678. struct foo { foo (); };
  1679. foo::foo () {}
  1680. extern "C" void ctor (void) __asm__ (ASM_UNDERSCORE_PREFIX CL_GLOBAL_CONSTRUCTOR_PREFIX "foobar");
  1681. int main() { ctor(); return 0; }
  1682. EOF
  1683. if { ac_try='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest1.cc conftest2.cc $LIBS 1>&5'; { (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1 && test -s conftest${ac_exeext}; then
  1684. cl_cv_cplusplus_ctorexport=no
  1685. else
  1686. cl_cv_cplusplus_ctorexport=yes
  1687. fi
  1688. rm -f conftest*
  1689. fi
  1690. echo "$ac_t""$cl_cv_cplusplus_ctorexport" 1>&6
  1691. if test "$cl_cv_cplusplus_ctorexport" = yes; then
  1692. cat >> confdefs.h <<\EOF
  1693. #define CL_NEED_GLOBALIZE_CTORDTOR 1
  1694. EOF
  1695. fi
  1696. fi
  1697. fi
  1698. for ac_hdr in unistd.h
  1699. do
  1700. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1701. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1702. echo "configure:1878: checking for $ac_hdr" >&5
  1703. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1704. echo $ac_n "(cached) $ac_c" 1>&6
  1705. else
  1706. cat > conftest.$ac_ext <<EOF
  1707. #line 1883 "configure"
  1708. #include "confdefs.h"
  1709. #include <$ac_hdr>
  1710. EOF
  1711. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1712. { (eval echo configure:1888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1713. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1714. if test -z "$ac_err"; then
  1715. rm -rf conftest*
  1716. eval "ac_cv_header_$ac_safe=yes"
  1717. else
  1718. echo "$ac_err" >&5
  1719. echo "configure: failed program was:" >&5
  1720. cat conftest.$ac_ext >&5
  1721. rm -rf conftest*
  1722. eval "ac_cv_header_$ac_safe=no"
  1723. fi
  1724. rm -f conftest*
  1725. fi
  1726. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1727. echo "$ac_t""yes" 1>&6
  1728. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1729. cat >> confdefs.h <<EOF
  1730. #define $ac_tr_hdr 1
  1731. EOF
  1732. else
  1733. echo "$ac_t""no" 1>&6
  1734. fi
  1735. done
  1736. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1737. # for constant arguments. Useless!
  1738. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1739. echo "configure:1918: checking for working alloca.h" >&5
  1740. if eval "test \"`echo '$''{'cl_cv_header_alloca_h'+set}'`\" = set"; then
  1741. echo $ac_n "(cached) $ac_c" 1>&6
  1742. else
  1743. cat > conftest.$ac_ext <<EOF
  1744. #line 1924 "configure"
  1745. #include "confdefs.h"
  1746. #include <alloca.h>
  1747. int main() {
  1748. char *p = (char *) alloca(2 * sizeof(int));
  1749. ; return 0; }
  1750. EOF
  1751. if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1752. rm -rf conftest*
  1753. cl_cv_header_alloca_h=yes
  1754. else
  1755. echo "configure: failed program was:" >&5
  1756. cat conftest.$ac_ext >&5
  1757. rm -rf conftest*
  1758. cl_cv_header_alloca_h=no
  1759. fi
  1760. rm -f conftest*
  1761. fi
  1762. echo "$ac_t""$cl_cv_header_alloca_h" 1>&6
  1763. if test $cl_cv_header_alloca_h = yes; then
  1764. cat >> confdefs.h <<\EOF
  1765. #define HAVE_ALLOCA_H 1
  1766. EOF
  1767. fi
  1768. decl="#ifdef __GNUC__
  1769. #define alloca __builtin_alloca
  1770. #else
  1771. #ifdef _MSC_VER
  1772. #include <malloc.h>
  1773. #define alloca _alloca
  1774. #else
  1775. #ifdef HAVE_ALLOCA_H
  1776. #include <alloca.h>
  1777. #else
  1778. #ifdef _AIX
  1779. #pragma alloca
  1780. #else
  1781. #ifndef alloca
  1782. char *alloca ();
  1783. #endif
  1784. #endif
  1785. #endif
  1786. #endif
  1787. #endif
  1788. "
  1789. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1790. echo "configure:1973: checking for alloca" >&5
  1791. if eval "test \"`echo '$''{'cl_cv_func_alloca'+set}'`\" = set"; then
  1792. echo $ac_n "(cached) $ac_c" 1>&6
  1793. else
  1794. cat > conftest.$ac_ext <<EOF
  1795. #line 1979 "configure"
  1796. #include "confdefs.h"
  1797. $decl
  1798. int main() {
  1799. char *p = (char *) alloca(1);
  1800. ; return 0; }
  1801. EOF
  1802. if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1803. rm -rf conftest*
  1804. cl_cv_func_alloca=yes
  1805. else
  1806. echo "configure: failed program was:" >&5
  1807. cat conftest.$ac_ext >&5
  1808. rm -rf conftest*
  1809. cl_cv_func_alloca=no
  1810. fi
  1811. rm -f conftest*
  1812. fi
  1813. echo "$ac_t""$cl_cv_func_alloca" 1>&6
  1814. if test $cl_cv_func_alloca = yes; then
  1815. :
  1816. else
  1817. alloca_missing=1
  1818. fi
  1819. if test -n "$alloca_missing"; then
  1820. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1821. # that cause trouble. Some versions do not even contain alloca or
  1822. # contain a buggy version. If you still want to use their alloca,
  1823. # use ar to extract alloca.o from them instead of compiling alloca.c.
  1824. ALLOCA=alloca.${ac_objext}
  1825. cat >> confdefs.h <<\EOF
  1826. #define NO_ALLOCA 1
  1827. EOF
  1828. fi
  1829. echo $ac_n "checking for fpu_control_t""... $ac_c" 1>&6
  1830. echo "configure:2018: checking for fpu_control_t" >&5
  1831. if eval "test \"`echo '$''{'cl_cv_type_fpu_control_t'+set}'`\" = set"; then
  1832. echo $ac_n "(cached) $ac_c" 1>&6
  1833. else
  1834. cat > conftest.$ac_ext <<EOF
  1835. #line 2024 "configure"
  1836. #include "confdefs.h"
  1837. #include <fpu_control.h>
  1838. int main() {
  1839. fpu_control_t x;
  1840. ; return 0; }
  1841. EOF
  1842. if { (eval echo configure:2031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1843. rm -rf conftest*
  1844. cl_cv_type_fpu_control_t=yes
  1845. else
  1846. echo "configure: failed program was:" >&5
  1847. cat conftest.$ac_ext >&5
  1848. rm -rf conftest*
  1849. cl_cv_type_fpu_control_t=no
  1850. fi
  1851. rm -f conftest*
  1852. fi
  1853. echo "$ac_t""$cl_cv_type_fpu_control_t" 1>&6
  1854. if test $cl_cv_type_fpu_control_t = yes; then
  1855. cat >> confdefs.h <<\EOF
  1856. #define HAVE_FPU_CONTROL_T 1
  1857. EOF
  1858. fi
  1859. echo $ac_n "checking for __setfpucw""... $ac_c" 1>&6
  1860. echo "configure:2053: checking for __setfpucw" >&5
  1861. if eval "test \"`echo '$''{'cl_cv_func_setfpucw'+set}'`\" = set"; then
  1862. echo $ac_n "(cached) $ac_c" 1>&6
  1863. else
  1864. cat > conftest.$ac_ext <<EOF
  1865. #line 2059 "configure"
  1866. #include "confdefs.h"
  1867. #include <fpu_control.h>
  1868. int main() {
  1869. __setfpucw(_FPU_IEEE);
  1870. ; return 0; }
  1871. EOF
  1872. if { (eval echo configure:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1873. rm -rf conftest*
  1874. cl_cv_func_setfpucw=yes
  1875. else
  1876. echo "configure: failed program was:" >&5
  1877. cat conftest.$ac_ext >&5
  1878. rm -rf conftest*
  1879. cl_cv_func_setfpucw=no
  1880. fi
  1881. rm -f conftest*
  1882. fi
  1883. echo "$ac_t""$cl_cv_func_setfpucw" 1>&6
  1884. if test $cl_cv_func_setfpucw = yes; then
  1885. cat >> confdefs.h <<\EOF
  1886. #define HAVE_SETFPUCW 1
  1887. EOF
  1888. fi
  1889. for ac_func in gettimeofday
  1890. do
  1891. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1892. echo "configure:2092: checking for $ac_func" >&5
  1893. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1894. echo $ac_n "(cached) $ac_c" 1>&6
  1895. else
  1896. cat > conftest.$ac_ext <<EOF
  1897. #line 2097 "configure"
  1898. #include "confdefs.h"
  1899. /* System header to define __stub macros and hopefully few prototypes,
  1900. which can conflict with char $ac_func(); below. */
  1901. #include <assert.h>
  1902. /* Override any gcc2 internal prototype to avoid an error. */
  1903. #ifdef __cplusplus
  1904. extern "C"
  1905. #endif
  1906. /* We use char because int might match the return type of a gcc2
  1907. builtin and then its argument prototype would still apply. */
  1908. char $ac_func();
  1909. int main() {
  1910. /* The GNU C library defines this for functions which it implements
  1911. to always fail with ENOSYS. Some functions are actually named
  1912. something starting with __ and the normal name is an alias. */
  1913. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1914. choke me
  1915. #else
  1916. $ac_func();
  1917. #endif
  1918. ; return 0; }
  1919. EOF
  1920. if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1921. rm -rf conftest*
  1922. eval "ac_cv_func_$ac_func=yes"
  1923. else
  1924. echo "configure: failed program was:" >&5
  1925. cat conftest.$ac_ext >&5
  1926. rm -rf conftest*
  1927. eval "ac_cv_func_$ac_func=no"
  1928. fi
  1929. rm -f conftest*
  1930. fi
  1931. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1932. echo "$ac_t""yes" 1>&6
  1933. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1934. cat >> confdefs.h <<EOF
  1935. #define $ac_tr_func 1
  1936. EOF
  1937. else
  1938. echo "$ac_t""no" 1>&6
  1939. fi
  1940. done
  1941. if test $ac_cv_func_gettimeofday = yes; then
  1942. echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
  1943. echo "configure:2148: checking for gettimeofday declaration" >&5
  1944. if eval "test \"`echo '$''{'cl_cv_proto_gettimeofday'+set}'`\" = set"; then
  1945. echo $ac_n "(cached) $ac_c" 1>&6
  1946. else
  1947. cat > conftest.$ac_ext <<EOF
  1948. #line 2154 "configure"
  1949. #include "confdefs.h"
  1950. #include <sys/types.h>
  1951. #include <sys/time.h>
  1952. extern
  1953. #ifdef __cplusplus
  1954. "C"
  1955. #endif
  1956. #if defined(__STDC__) || defined(__cplusplus)
  1957. int gettimeofday (struct timeval * tp, struct timezone * tzp);
  1958. #else
  1959. int gettimeofday();
  1960. #endif
  1961. int main() {
  1962. ; return 0; }
  1963. EOF
  1964. if { (eval echo configure:2175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1965. rm -rf conftest*
  1966. cl_cv_proto_gettimeofday_dots=no
  1967. cl_cv_proto_gettimeofday_arg2="struct timezone *"
  1968. else
  1969. echo "configure: failed program was:" >&5
  1970. cat conftest.$ac_ext >&5
  1971. rm -rf conftest*
  1972. cat > conftest.$ac_ext <<EOF
  1973. #line 2184 "configure"
  1974. #include "confdefs.h"
  1975. #include <sys/types.h>
  1976. #include <sys/time.h>
  1977. extern
  1978. #ifdef __cplusplus
  1979. "C"
  1980. #endif
  1981. #if defined(__STDC__) || defined(__cplusplus)
  1982. int gettimeofday (struct timeval * tp, void * tzp);
  1983. #else
  1984. int gettimeofday();
  1985. #endif
  1986. int main() {
  1987. ; return 0; }
  1988. EOF
  1989. if { (eval echo configure:2205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1990. rm -rf conftest*
  1991. cl_cv_proto_gettimeofday_dots=no
  1992. cl_cv_proto_gettimeofday_arg2="void *"
  1993. else
  1994. echo "configure: failed program was:" >&5
  1995. cat conftest.$ac_ext >&5
  1996. rm -rf conftest*
  1997. cl_cv_proto_gettimeofday_dots=yes
  1998. cl_cv_proto_gettimeofday_arg2="..."
  1999. fi
  2000. rm -f conftest*
  2001. fi
  2002. rm -f conftest*
  2003. cl_cv_proto_gettimeofday="extern int gettimeofday (struct timeval *, $cl_cv_proto_gettimeofday_arg2);"
  2004. fi
  2005. cl_cv_proto_gettimeofday=`echo "$cl_cv_proto_gettimeofday" | tr -s ' ' | sed -e 's/( /(/'`
  2006. echo "$ac_t""${ac_tt}$cl_cv_proto_gettimeofday" 1>&6
  2007. if test $cl_cv_proto_gettimeofday_dots = yes; then
  2008. cat >> confdefs.h <<\EOF
  2009. #define GETTIMEOFDAY_DOTS 1
  2010. EOF
  2011. else
  2012. cat >> confdefs.h <<EOF
  2013. #define GETTIMEOFDAY_TZP_T $cl_cv_proto_gettimeofday_arg2
  2014. EOF
  2015. fi
  2016. fi
  2017. for ac_func in ftime
  2018. do
  2019. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2020. echo "configure:2246: checking for $ac_func" >&5
  2021. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2022. echo $ac_n "(cached) $ac_c" 1>&6
  2023. else
  2024. cat > conftest.$ac_ext <<EOF
  2025. #line 2251 "configure"
  2026. #include "confdefs.h"
  2027. /* System header to define __stub macros and hopefully few prototypes,
  2028. which can conflict with char $ac_func(); below. */
  2029. #include <assert.h>
  2030. /* Override any gcc2 internal prototype to avoid an error. */
  2031. #ifdef __cplusplus
  2032. extern "C"
  2033. #endif
  2034. /* We use char because int might match the return type of a gcc2
  2035. builtin and then its argument prototype would still apply. */
  2036. char $ac_func();
  2037. int main() {
  2038. /* The GNU C library defines this for functions which it implements
  2039. to always fail with ENOSYS. Some functions are actually named
  2040. something starting with __ and the normal name is an alias. */
  2041. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2042. choke me
  2043. #else
  2044. $ac_func();
  2045. #endif
  2046. ; return 0; }
  2047. EOF
  2048. if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2049. rm -rf conftest*
  2050. eval "ac_cv_func_$ac_func=yes"
  2051. else
  2052. echo "configure: failed program was:" >&5
  2053. cat conftest.$ac_ext >&5
  2054. rm -rf conftest*
  2055. eval "ac_cv_func_$ac_func=no"
  2056. fi
  2057. rm -f conftest*
  2058. fi
  2059. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2060. echo "$ac_t""yes" 1>&6
  2061. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2062. cat >> confdefs.h <<EOF
  2063. #define $ac_tr_func 1
  2064. EOF
  2065. else
  2066. echo "$ac_t""no" 1>&6
  2067. fi
  2068. done
  2069. if test $ac_cv_func_gettimeofday = no -a $ac_cv_func_ftime = no; then
  2070. echo $ac_n "checking for times""... $ac_c" 1>&6
  2071. echo "configure:2303: checking for times" >&5
  2072. if eval "test \"`echo '$''{'ac_cv_func_times'+set}'`\" = set"; then
  2073. echo $ac_n "(cached) $ac_c" 1>&6
  2074. else
  2075. cat > conftest.$ac_ext <<EOF
  2076. #line 2308 "configure"
  2077. #include "confdefs.h"
  2078. /* System header to define __stub macros and hopefully few prototypes,
  2079. which can conflict with char times(); below. */
  2080. #include <assert.h>
  2081. /* Override any gcc2 internal prototype to avoid an error. */
  2082. #ifdef __cplusplus
  2083. extern "C"
  2084. #endif
  2085. /* We use char because int might match the return type of a gcc2
  2086. builtin and then its argument prototype would still apply. */
  2087. char times();
  2088. int main() {
  2089. /* The GNU C library defines this for functions which it implements
  2090. to always fail with ENOSYS. Some functions are actually named
  2091. something starting with __ and the normal name is an alias. */
  2092. #if defined (__stub_times) || defined (__stub___times)
  2093. choke me
  2094. #else
  2095. times();
  2096. #endif
  2097. ; return 0; }
  2098. EOF
  2099. if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2100. rm -rf conftest*
  2101. eval "ac_cv_func_times=yes"
  2102. else
  2103. echo "configure: failed program was:" >&5
  2104. cat conftest.$ac_ext >&5
  2105. rm -rf conftest*
  2106. eval "ac_cv_func_times=no"
  2107. fi
  2108. rm -f conftest*
  2109. fi
  2110. if eval "test \"`echo '$ac_cv_func_'times`\" = yes"; then
  2111. echo "$ac_t""yes" 1>&6
  2112. :
  2113. else
  2114. echo "$ac_t""no" 1>&6
  2115. no_times=1
  2116. fi
  2117. if test -z "$no_times"; then
  2118. echo $ac_n "checking for times return value""... $ac_c" 1>&6
  2119. echo "configure:2355: checking for times return value" >&5
  2120. if eval "test \"`echo '$''{'cl_cv_func_times_return'+set}'`\" = set"; then
  2121. echo $ac_n "(cached) $ac_c" 1>&6
  2122. else
  2123. if test "$cross_compiling" = yes; then
  2124. cl_cv_func_times_return="guessing no"
  2125. else
  2126. cat > conftest.$ac_ext <<EOF
  2127. #line 2364 "configure"
  2128. #include "confdefs.h"
  2129. #ifdef __cplusplus
  2130. extern "C" void exit(int);
  2131. #endif
  2132. #include <sys/types.h>
  2133. #include <time.h> /* needed for CLK_TCK */
  2134. #ifndef CLK_TCK
  2135. #include <sys/time.h> /* needed for CLK_TCK on SYSV PTX */
  2136. #endif
  2137. #include <sys/times.h>
  2138. int main ()
  2139. { struct tms buffer;
  2140. clock_t result1;
  2141. clock_t result2;
  2142. int ticks;
  2143. result1 = times(&buffer);
  2144. if ((result1 == (clock_t)0) || (result1 == (clock_t)(-1))) exit(1);
  2145. sleep(1);
  2146. result2 = times(&buffer);
  2147. if ((result2 == (clock_t)0) || (result2 == (clock_t)(-1))) exit(1);
  2148. ticks = result2 - result1;
  2149. exit(!((ticks >= CLK_TCK/2) && (ticks <= 3*CLK_TCK/2)));
  2150. }
  2151. EOF
  2152. if { (eval echo configure:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2153. then
  2154. cl_cv_func_times_return=yes
  2155. else
  2156. echo "configure: failed program was:" >&5
  2157. cat conftest.$ac_ext >&5
  2158. rm -fr conftest*
  2159. cl_cv_func_times_return=no
  2160. fi
  2161. if test -f core; then
  2162. coredir=core`/bin/sh -c 'echo $$'`
  2163. mkdir $coredir
  2164. cp confdefs.h $coredir/confdefs.h
  2165. mv conftest.c $coredir/conftest.c
  2166. mv conftest $coredir/conftest
  2167. mv core $coredir/core
  2168. echo "warning: test program dumped core -- see subdirectory $coredir"
  2169. fi
  2170. rm -fr conftest*
  2171. fi
  2172. fi
  2173. echo "$ac_t""$cl_cv_func_times_return" 1>&6
  2174. case "$cl_cv_func_times_return" in
  2175. *yes) cat >> confdefs.h <<\EOF
  2176. #define HAVE_TIMES_CLOCK 1
  2177. EOF
  2178. ;;
  2179. *no) ;;
  2180. esac
  2181. fi
  2182. fi
  2183. for ac_hdr in sys/resource.h sys/times.h
  2184. do
  2185. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2186. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2187. echo "configure:2428: checking for $ac_hdr" >&5
  2188. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2189. echo $ac_n "(cached) $ac_c" 1>&6
  2190. else
  2191. cat > conftest.$ac_ext <<EOF
  2192. #line 2433 "configure"
  2193. #include "confdefs.h"
  2194. #include <$ac_hdr>
  2195. EOF
  2196. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2197. { (eval echo configure:2438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2198. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2199. if test -z "$ac_err"; then
  2200. rm -rf conftest*
  2201. eval "ac_cv_header_$ac_safe=yes"
  2202. else
  2203. echo "$ac_err" >&5
  2204. echo "configure: failed program was:" >&5
  2205. cat conftest.$ac_ext >&5
  2206. rm -rf conftest*
  2207. eval "ac_cv_header_$ac_safe=no"
  2208. fi
  2209. rm -f conftest*
  2210. fi
  2211. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2212. echo "$ac_t""yes" 1>&6
  2213. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2214. cat >> confdefs.h <<EOF
  2215. #define $ac_tr_hdr 1
  2216. EOF
  2217. else
  2218. echo "$ac_t""no" 1>&6
  2219. fi
  2220. done
  2221. if test $ac_cv_header_sys_resource_h = yes; then
  2222. echo $ac_n "checking for getrusage""... $ac_c" 1>&6
  2223. echo "configure:2465: checking for getrusage" >&5
  2224. if eval "test \"`echo '$''{'cl_cv_func_getrusage'+set}'`\" = set"; then
  2225. echo $ac_n "(cached) $ac_c" 1>&6
  2226. else
  2227. cat > conftest.$ac_ext <<EOF
  2228. #line 2471 "configure"
  2229. #include "confdefs.h"
  2230. #include <sys/types.h> /* NetBSD 1.0 needs this */
  2231. #include <sys/time.h>
  2232. #include <sys/resource.h>
  2233. int main() {
  2234. struct rusage x; int y = RUSAGE_SELF; getrusage(y,&x); x.ru_utime.tv_sec;
  2235. ; return 0; }
  2236. EOF
  2237. if { (eval echo configure:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2238. rm -rf conftest*
  2239. cl_cv_func_getrusage=yes
  2240. else
  2241. echo "configure: failed program was:" >&5
  2242. cat conftest.$ac_ext >&5
  2243. rm -rf conftest*
  2244. cl_cv_func_getrusage=no
  2245. fi
  2246. rm -f conftest*
  2247. fi
  2248. echo "$ac_t""$cl_cv_func_getrusage" 1>&6
  2249. if test $cl_cv_func_getrusage = yes; then
  2250. cat >> confdefs.h <<\EOF
  2251. #define HAVE_GETRUSAGE 1
  2252. EOF
  2253. fi
  2254. if test $cl_cv_func_getrusage = yes; then
  2255. echo $ac_n "checking for getrusage declaration""... $ac_c" 1>&6
  2256. echo "configure:2502: checking for getrusage declaration" >&5
  2257. if eval "test \"`echo '$''{'cl_cv_proto_getrusage'+set}'`\" = set"; then
  2258. echo $ac_n "(cached) $ac_c" 1>&6
  2259. else
  2260. cat > conftest.$ac_ext <<EOF
  2261. #line 2508 "configure"
  2262. #include "confdefs.h"
  2263. #include <stdlib.h>
  2264. #ifdef HAVE_UNISTD_H
  2265. #include <unistd.h>
  2266. #endif
  2267. #include <sys/types.h> /* NetBSD 1.0 needs this */
  2268. #include <sys/time.h>
  2269. #include <sys/resource.h>
  2270. extern
  2271. #ifdef __cplusplus
  2272. "C"
  2273. #endif
  2274. #if defined(__STDC__) || defined(__cplusplus)
  2275. int getrusage (int who, struct rusage * rusage);
  2276. #else
  2277. int getrusage();
  2278. #endif
  2279. int main() {
  2280. ; return 0; }
  2281. EOF
  2282. if { (eval echo configure:2534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2283. rm -rf conftest*
  2284. cl_cv_proto_getrusage_arg1="int"
  2285. else
  2286. echo "configure: failed program was:" >&5
  2287. cat conftest.$ac_ext >&5
  2288. rm -rf conftest*
  2289. cl_cv_proto_getrusage_arg1="enum __rusage_who"
  2290. fi
  2291. rm -f conftest*
  2292. cl_cv_proto_getrusage="extern int getrusage ($cl_cv_proto_getrusage_arg1, struct rusage *);"
  2293. fi
  2294. cl_cv_proto_getrusage=`echo "$cl_cv_proto_getrusage" | tr -s ' ' | sed -e 's/( /(/'`
  2295. echo "$ac_t""${ac_tt}$cl_cv_proto_getrusage" 1>&6
  2296. cat >> confdefs.h <<EOF
  2297. #define RUSAGE_WHO_T $cl_cv_proto_getrusage_arg1
  2298. EOF
  2299. fi
  2300. fi
  2301. echo $ac_n "checking for perror declaration""... $ac_c" 1>&6
  2302. echo "configure:2561: checking for perror declaration" >&5
  2303. if eval "test \"`echo '$''{'cl_cv_proto_perror'+set}'`\" = set"; then
  2304. echo $ac_n "(cached) $ac_c" 1>&6
  2305. else
  2306. cat > conftest.$ac_ext <<EOF
  2307. #line 2567 "configure"
  2308. #include "confdefs.h"
  2309. /* Some systems declare perror() in <errno.h>, some in <stdio.h>, some don't
  2310. declare it at all. */
  2311. #include <stdio.h>
  2312. #include <errno.h>
  2313. extern
  2314. #ifdef __cplusplus
  2315. "C"
  2316. #endif
  2317. double perror ();
  2318. int main() {
  2319. ; return 0; }
  2320. EOF
  2321. if { (eval echo configure:2583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2322. rm -rf conftest*
  2323. cl_cv_proto_perror=no
  2324. else
  2325. echo "configure: failed program was:" >&5
  2326. cat conftest.$ac_ext >&5
  2327. rm -rf conftest*
  2328. cl_cv_proto_perror=yes
  2329. fi
  2330. rm -f conftest*
  2331. fi
  2332. echo "$ac_t""$cl_cv_proto_perror" 1>&6
  2333. if test $cl_cv_proto_perror = yes; then
  2334. cat >> confdefs.h <<\EOF
  2335. #define HAVE_PERROR_DECL 1
  2336. EOF
  2337. fi
  2338. echo $ac_n "checking whether characters are unsigned""... $ac_c" 1>&6
  2339. echo "configure:2605: checking whether characters are unsigned" >&5
  2340. if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  2341. echo $ac_n "(cached) $ac_c" 1>&6
  2342. else
  2343. if test $ac_cv_prog_gcc = yes; then
  2344. # GCC predefines this symbol on systems where it applies.
  2345. cat > conftest.$ac_ext <<EOF
  2346. #line 2613 "configure"
  2347. #include "confdefs.h"
  2348. #ifdef __CHAR_UNSIGNED__
  2349. yes
  2350. #endif
  2351. EOF
  2352. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2353. egrep "yes" >/dev/null 2>&1; then
  2354. rm -rf conftest*
  2355. ac_cv_c_char_unsigned=yes
  2356. else
  2357. rm -rf conftest*
  2358. ac_cv_c_char_unsigned=no
  2359. fi
  2360. rm -f conftest*
  2361. else
  2362. if test "$cross_compiling" = yes; then
  2363. ac_cv_c_char_unsigned="guessing no"
  2364. else
  2365. cat > conftest.$ac_ext <<EOF
  2366. #line 2635 "configure"
  2367. #include "confdefs.h"
  2368. #ifdef __cplusplus
  2369. extern "C" void exit(int);
  2370. #endif
  2371. /* volatile prevents gcc2 from optimizing the test away on sparcs. */
  2372. #if !defined(__STDC__) || __STDC__ != 1
  2373. #define volatile
  2374. #endif
  2375. int main() {
  2376. volatile char c = 255; exit(c < 0);
  2377. }
  2378. EOF
  2379. if { (eval echo configure:2648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2380. then
  2381. ac_cv_c_char_unsigned=yes
  2382. else
  2383. echo "configure: failed program was:" >&5
  2384. cat conftest.$ac_ext >&5
  2385. rm -fr conftest*
  2386. ac_cv_c_char_unsigned=no
  2387. fi
  2388. if test -f core; then
  2389. coredir=core`/bin/sh -c 'echo $$'`
  2390. mkdir $coredir
  2391. cp confdefs.h $coredir/confdefs.h
  2392. mv conftest.c $coredir/conftest.c
  2393. mv conftest $coredir/conftest
  2394. mv core $coredir/core
  2395. echo "warning: test program dumped core -- see subdirectory $coredir"
  2396. fi
  2397. rm -fr conftest*
  2398. fi
  2399. fi
  2400. fi
  2401. echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
  2402. if test $ac_cv_prog_gcc = no; then
  2403. # GCC defines __CHAR_UNSIGNED__ by itself, no need to fix up.
  2404. case "$ac_cv_c_char_unsigned" in
  2405. *yes) cat >> confdefs.h <<\EOF
  2406. #define __CHAR_UNSIGNED__ 1
  2407. EOF
  2408. ;;
  2409. *no) ;;
  2410. esac
  2411. fi
  2412. test -d 'include' || mkdir 'include'
  2413. cl_machine_file_c=${srcdir}/autoconf/intparam.c
  2414. cl_machine_file_h=include/cln/intparam.h
  2415. if test $cross_compiling = no; then
  2416. if test -z "$cl_cv_file_intparam_h"; then
  2417. echo "checking for integer types and behaviour" 1>&6
  2418. echo "configure:2689: checking for integer types and behaviour" >&5
  2419. cat > conftest.$ac_ext <<EOF
  2420. #include "confdefs.h"
  2421. EOF
  2422. cat "$cl_machine_file_c" >> conftest.$ac_ext
  2423. ORIGCC="$CC"
  2424. if test $ac_cv_prog_gcc = yes; then
  2425. # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
  2426. # target 80386. Strip "-O".
  2427. CC=`echo "$CC " | sed -e 's/-O //g'`
  2428. fi
  2429. { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2430. CC="$ORIGCC"
  2431. if test -s conftest; then
  2432. echo "creating $cl_machine_file_h"
  2433. ./conftest > conftest.h
  2434. if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
  2435. # The file exists and we would not be changing it
  2436. rm -f conftest.h
  2437. else
  2438. rm -f "$cl_machine_file_h"
  2439. mv conftest.h "$cl_machine_file_h"
  2440. fi
  2441. cl_cv_file_intparam_h=1
  2442. else
  2443. echo "creation of $cl_machine_file_h failed"
  2444. fi
  2445. rm -f conftest*
  2446. fi
  2447. else
  2448. echo "cross-compiling - cannot create $cl_machine_file_h"
  2449. fi
  2450. cl_machine_file_c=${srcdir}/autoconf/floatparam.c
  2451. cl_machine_file_h=include/cln/floatparam.h
  2452. if test $cross_compiling = no; then
  2453. if test -z "$cl_cv_file_floatparam_h"; then
  2454. echo "checking for floating-point types and behaviour" 1>&6
  2455. echo "configure:2727: checking for floating-point types and behaviour" >&5
  2456. cat > conftest.$ac_ext <<EOF
  2457. #include "confdefs.h"
  2458. EOF
  2459. cat "$cl_machine_file_c" >> conftest.$ac_ext
  2460. ORIGCC="$CC"
  2461. if test $ac_cv_prog_gcc = yes; then
  2462. # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
  2463. # target 80386. Strip "-O".
  2464. CC=`echo "$CC " | sed -e 's/-O //g'`
  2465. fi
  2466. { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2467. CC="$ORIGCC"
  2468. if test -s conftest; then
  2469. echo "creating $cl_machine_file_h"
  2470. ./conftest > conftest.h
  2471. if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
  2472. # The file exists and we would not be changing it
  2473. rm -f conftest.h
  2474. else
  2475. rm -f "$cl_machine_file_h"
  2476. mv conftest.h "$cl_machine_file_h"
  2477. fi
  2478. cl_cv_file_floatparam_h=1
  2479. else
  2480. echo "creation of $cl_machine_file_h failed"
  2481. fi
  2482. rm -f conftest*
  2483. fi
  2484. else
  2485. echo "cross-compiling - cannot create $cl_machine_file_h"
  2486. fi
  2487. # Check whether --with-gmp or --without-gmp was given.
  2488. if test "${with_gmp+set}" = set; then
  2489. withval="$with_gmp"
  2490. :
  2491. else
  2492. with_gmp="yes"
  2493. fi
  2494. if test "$with_gmp" = yes; then
  2495. echo $ac_n "checking for recent enough gmp.h""... $ac_c" 1>&6
  2496. echo "configure:2770: checking for recent enough gmp.h" >&5
  2497. if eval "test \"`echo '$''{'cl_cv_new_gmp_h'+set}'`\" = set"; then
  2498. echo $ac_n "(cached) $ac_c" 1>&6
  2499. else
  2500. cat > conftest.$ac_ext <<EOF
  2501. #line 2776 "configure"
  2502. #include "confdefs.h"
  2503. #include <gmp.h>
  2504. #if !defined(__GNU_MP_VERSION) || (__GNU_MP_VERSION < 3)
  2505. #error "ancient gmp.h"
  2506. #endif
  2507. EOF
  2508. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2509. { (eval echo configure:2784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2510. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2511. if test -z "$ac_err"; then
  2512. rm -rf conftest*
  2513. cl_cv_new_gmp_h="yes"
  2514. else
  2515. echo "$ac_err" >&5
  2516. echo "configure: failed program was:" >&5
  2517. cat conftest.$ac_ext >&5
  2518. rm -rf conftest*
  2519. cl_cv_new_gmp_h="no"
  2520. fi
  2521. rm -f conftest*
  2522. fi
  2523. echo "$ac_t""$cl_cv_new_gmp_h" 1>&6
  2524. if test "$cl_cv_new_gmp_h" = no; then with_gmp="no"; fi
  2525. if test "$with_gmp" = yes; then
  2526. echo $ac_n "checking for working libgmp""... $ac_c" 1>&6
  2527. echo "configure:2803: checking for working libgmp" >&5
  2528. if eval "test \"`echo '$''{'cl_cv_new_libgmp'+set}'`\" = set"; then
  2529. echo $ac_n "(cached) $ac_c" 1>&6
  2530. else
  2531. SAVELIBS=$LIBS
  2532. LIBS="$LIBS -lgmp"
  2533. cat > conftest.$ac_ext <<EOF
  2534. #line 2811 "configure"
  2535. #include "confdefs.h"
  2536. #include <gmp.h>
  2537. int main() {
  2538. mpn_divexact_by3(0,0,0)
  2539. ; return 0; }
  2540. EOF
  2541. if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2542. rm -rf conftest*
  2543. cl_cv_new_libgmp="yes"
  2544. else
  2545. echo "configure: failed program was:" >&5
  2546. cat conftest.$ac_ext >&5
  2547. rm -rf conftest*
  2548. cl_cv_new_libgmp="no"; LIBS=$SAVELIBS
  2549. fi
  2550. rm -f conftest*
  2551. fi
  2552. echo "$ac_t""$cl_cv_new_libgmp" 1>&6
  2553. if test "$cl_cv_new_libgmp" = no; then with_gmp="no"; fi
  2554. fi
  2555. fi
  2556. if test "$with_gmp" = yes; then
  2557. cat >> confdefs.h <<\EOF
  2558. #define CL_USE_GMP 1
  2559. EOF
  2560. else
  2561. echo "configure: warning: disabling external GNU MP library" 1>&2
  2562. fi
  2563. for f in 'tests/.gdbinit'; do
  2564. if test '!' -f "$f"; then
  2565. echo "creating $f"
  2566. g=`echo "$f" | sed -e 's,/[^/]*$,,'`
  2567. test "$g" = "$f" || test -d "$g" || mkdir "$g"
  2568. cp "$srcdir/$f" "$f"
  2569. fi
  2570. done
  2571. trap '' 1 2 15
  2572. cat > confcache <<\EOF
  2573. # This file is a shell script that caches the results of configure
  2574. # tests run on this system so they can be shared between configure
  2575. # scripts and configure runs. It is not useful on other systems.
  2576. # If it contains results you don't want to keep, you may remove or edit it.
  2577. #
  2578. # By default, configure uses ./config.cache as the cache file,
  2579. # creating it if it does not exist already. You can give configure
  2580. # the --cache-file=FILE option to use a different cache file; that is
  2581. # what configure does when it calls configure scripts in
  2582. # subdirectories, so they share the cache.
  2583. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2584. # config.status only pays attention to the cache file if you give it the
  2585. # --recheck option to rerun configure.
  2586. #
  2587. EOF
  2588. # The following way of writing the cache mishandles newlines in values,
  2589. # but we know of no workaround that is simple, portable, and efficient.
  2590. # So, don't put newlines in cache variables' values.
  2591. # Ultrix sh set writes to stderr and can't be redirected directly,
  2592. # and sets the high bit in the cache file unless we assign to the vars.
  2593. (set) 2>&1 |
  2594. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2595. *ac_space=\ *)
  2596. # `set' does not quote correctly, so add quotes (double-quote substitution
  2597. # turns \\\\ into \\, and sed turns \\ into \).
  2598. sed -n \
  2599. -e "s/'/'\\\\''/g" \
  2600. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2601. ;;
  2602. *)
  2603. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2604. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2605. ;;
  2606. esac >> confcache
  2607. if cmp -s $cache_file confcache; then
  2608. :
  2609. else
  2610. if test -w $cache_file; then
  2611. echo "updating cache $cache_file"
  2612. cat confcache > $cache_file
  2613. else
  2614. echo "not updating unwritable cache $cache_file"
  2615. fi
  2616. fi
  2617. rm -f confcache
  2618. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  2619. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2620. # Let make expand exec_prefix.
  2621. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2622. # Any assignment to VPATH causes Sun make to only execute
  2623. # the first set of double-colon rules, so remove it if not needed.
  2624. # If there is a colon in the path, we need to keep it.
  2625. if test "x$srcdir" = x.; then
  2626. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  2627. fi
  2628. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2629. DEFS=-DHAVE_CONFIG_H
  2630. # Without the "./", some shells look in PATH for config.status.
  2631. : ${CONFIG_STATUS=./config.status}
  2632. echo creating $CONFIG_STATUS
  2633. rm -f $CONFIG_STATUS
  2634. cat > $CONFIG_STATUS <<EOF
  2635. #! /bin/sh
  2636. # Generated automatically by configure.
  2637. # Run this file to recreate the current configuration.
  2638. # This directory was configured as follows,
  2639. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2640. #
  2641. # $0 $ac_configure_args
  2642. #
  2643. # Compiler output produced by configure, useful for debugging
  2644. # configure, is in ./config.log if it exists.
  2645. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2646. for ac_option
  2647. do
  2648. case "\$ac_option" in
  2649. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2650. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2651. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2652. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2653. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  2654. exit 0 ;;
  2655. -help | --help | --hel | --he | --h)
  2656. echo "\$ac_cs_usage"; exit 0 ;;
  2657. *) echo "\$ac_cs_usage"; exit 1 ;;
  2658. esac
  2659. done
  2660. ac_given_srcdir=$srcdir
  2661. trap 'rm -fr `echo "Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile cln-config include/cln/config.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2662. EOF
  2663. cat >> $CONFIG_STATUS <<EOF
  2664. # Protect against being on the right side of a sed subst in config.status.
  2665. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2666. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2667. $ac_vpsub
  2668. $extrasub
  2669. s%@SHELL@%$SHELL%g
  2670. s%@CFLAGS@%$CFLAGS%g
  2671. s%@CPPFLAGS@%$CPPFLAGS%g
  2672. s%@CXXFLAGS@%$CXXFLAGS%g
  2673. s%@FFLAGS@%$FFLAGS%g
  2674. s%@DEFS@%$DEFS%g
  2675. s%@LDFLAGS@%$LDFLAGS%g
  2676. s%@LIBS@%$LIBS%g
  2677. s%@exec_prefix@%$exec_prefix%g
  2678. s%@prefix@%$prefix%g
  2679. s%@program_transform_name@%$program_transform_name%g
  2680. s%@bindir@%$bindir%g
  2681. s%@sbindir@%$sbindir%g
  2682. s%@libexecdir@%$libexecdir%g
  2683. s%@datadir@%$datadir%g
  2684. s%@sysconfdir@%$sysconfdir%g
  2685. s%@sharedstatedir@%$sharedstatedir%g
  2686. s%@localstatedir@%$localstatedir%g
  2687. s%@libdir@%$libdir%g
  2688. s%@includedir@%$includedir%g
  2689. s%@oldincludedir@%$oldincludedir%g
  2690. s%@infodir@%$infodir%g
  2691. s%@mandir@%$mandir%g
  2692. s%@SET_MAKE@%$SET_MAKE%g
  2693. s%@CC@%$CC%g
  2694. s%@CPP@%$CPP%g
  2695. s%@CXX@%$CXX%g
  2696. s%@CXXCPP@%$CXXCPP%g
  2697. s%@AS_UNDERSCORE@%$AS_UNDERSCORE%g
  2698. s%@RANLIB@%$RANLIB%g
  2699. s%@INSTALL@%$INSTALL%g
  2700. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2701. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2702. s%@host@%$host%g
  2703. s%@host_cpu@%$host_cpu%g
  2704. s%@host_vendor@%$host_vendor%g
  2705. s%@host_os@%$host_os%g
  2706. s%@LD@%$LD%g
  2707. s%@NM@%$NM%g
  2708. s%@LN_S@%$LN_S%g
  2709. s%@LIBTOOL@%$LIBTOOL%g
  2710. s%@CL_CURRENT@%$CL_CURRENT%g
  2711. s%@CL_REVISION@%$CL_REVISION%g
  2712. s%@CL_AGE@%$CL_AGE%g
  2713. s%@CL_VERSION@%$CL_VERSION%g
  2714. s%@ALLOCA@%$ALLOCA%g
  2715. CEOF
  2716. EOF
  2717. cat >> $CONFIG_STATUS <<\EOF
  2718. # Split the substitutions into bite-sized pieces for seds with
  2719. # small command number limits, like on Digital OSF/1 and HP-UX.
  2720. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2721. ac_file=1 # Number of current file.
  2722. ac_beg=1 # First line for current file.
  2723. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2724. ac_more_lines=:
  2725. ac_sed_cmds=""
  2726. while $ac_more_lines; do
  2727. if test $ac_beg -gt 1; then
  2728. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2729. else
  2730. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2731. fi
  2732. if test ! -s conftest.s$ac_file; then
  2733. ac_more_lines=false
  2734. rm -f conftest.s$ac_file
  2735. else
  2736. if test -z "$ac_sed_cmds"; then
  2737. ac_sed_cmds="sed -f conftest.s$ac_file"
  2738. else
  2739. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2740. fi
  2741. ac_file=`expr $ac_file + 1`
  2742. ac_beg=$ac_end
  2743. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2744. fi
  2745. done
  2746. if test -z "$ac_sed_cmds"; then
  2747. ac_sed_cmds=cat
  2748. fi
  2749. EOF
  2750. cat >> $CONFIG_STATUS <<EOF
  2751. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile cln-config"}
  2752. EOF
  2753. cat >> $CONFIG_STATUS <<\EOF
  2754. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2755. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2756. case "$ac_file" in
  2757. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2758. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2759. *) ac_file_in="${ac_file}.in" ;;
  2760. esac
  2761. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2762. # Remove last slash and all that follows it. Not all systems have dirname.
  2763. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2764. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2765. # The file is in a subdirectory.
  2766. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2767. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2768. # A "../" for each directory in $ac_dir_suffix.
  2769. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2770. else
  2771. ac_dir_suffix= ac_dots=
  2772. fi
  2773. case "$ac_given_srcdir" in
  2774. .) srcdir=.
  2775. if test -z "$ac_dots"; then top_srcdir=.
  2776. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2777. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2778. *) # Relative path.
  2779. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2780. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2781. esac
  2782. echo creating "$ac_file"
  2783. rm -f "$ac_file"
  2784. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2785. case "$ac_file" in
  2786. *Makefile*) ac_comsub="1i\\
  2787. # $configure_input" ;;
  2788. *) ac_comsub= ;;
  2789. esac
  2790. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2791. sed -e "$ac_comsub
  2792. s%@configure_input@%$configure_input%g
  2793. s%@srcdir@%$srcdir%g
  2794. s%@top_srcdir@%$top_srcdir%g
  2795. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2796. fi; done
  2797. rm -f conftest.s*
  2798. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2799. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2800. #
  2801. # ac_d sets the value in "#define NAME VALUE" lines.
  2802. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  2803. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  2804. ac_dC='\3'
  2805. ac_dD='%g'
  2806. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2807. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2808. ac_uB='\([ ]\)%\1#\2define\3'
  2809. ac_uC=' '
  2810. ac_uD='\4%g'
  2811. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2812. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2813. ac_eB='$%\1#\2define\3'
  2814. ac_eC=' '
  2815. ac_eD='%g'
  2816. # ac_f turns "#define NAME" without trailing blanks into "#define NAME VALUE".
  2817. ac_fA='s%^\([ ]*\)#\([ ]*\)define\([ ][ ]*\)'
  2818. ac_fB='$%\1#\2define\3'
  2819. ac_fC=' '
  2820. ac_fD='%g'
  2821. if test "${CONFIG_HEADERS+set}" != set; then
  2822. EOF
  2823. cat >> $CONFIG_STATUS <<EOF
  2824. CONFIG_HEADERS="include/cln/config.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h"
  2825. EOF
  2826. cat >> $CONFIG_STATUS <<\EOF
  2827. fi
  2828. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2829. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2830. case "$ac_file" in
  2831. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2832. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2833. *) ac_file_in="${ac_file}.in" ;;
  2834. esac
  2835. echo creating $ac_file
  2836. rm -f conftest.frag conftest.in conftest.out
  2837. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2838. cat $ac_file_inputs > conftest.in
  2839. EOF
  2840. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2841. # the proper values into config.h.in to produce config.h. And first:
  2842. # Protect against being on the right side of a sed subst in config.status.
  2843. # Protect against being in an unquoted here document in config.status.
  2844. rm -f conftest.vals
  2845. cat > conftest.hdr <<\EOF
  2846. s/[\\&%]/\\&/g
  2847. s%[\\$`]%\\&%g
  2848. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2849. s%ac_d%ac_u%gp
  2850. s%ac_u%ac_e%gp
  2851. s%ac_e%ac_f%gp
  2852. EOF
  2853. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2854. rm -f conftest.hdr
  2855. # Break up conftest.vals because some shells have a limit on
  2856. # the size of here documents, and old seds have small limits too.
  2857. rm -f conftest.tail
  2858. while :
  2859. do
  2860. ac_lines=`grep -c . conftest.vals`
  2861. # grep -c gives empty output for an empty file on some AIX systems.
  2862. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2863. # Write a limited-size here document to conftest.frag.
  2864. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2865. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2866. echo 'CEOF
  2867. sed -f conftest.frag conftest.in > conftest.out
  2868. rm -f conftest.in
  2869. mv conftest.out conftest.in
  2870. ' >> $CONFIG_STATUS
  2871. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2872. rm -f conftest.vals
  2873. mv conftest.tail conftest.vals
  2874. done
  2875. rm -f conftest.vals
  2876. cat >> $CONFIG_STATUS <<\EOF
  2877. rm -f conftest.frag conftest.h
  2878. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  2879. cat conftest.in >> conftest.h
  2880. rm -f conftest.in
  2881. if cmp -s $ac_file conftest.h 2>/dev/null; then
  2882. echo "$ac_file is unchanged"
  2883. rm -f conftest.h
  2884. else
  2885. # Remove last slash and all that follows it. Not all systems have dirname.
  2886. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2887. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2888. # The file is in a subdirectory.
  2889. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2890. fi
  2891. rm -f $ac_file
  2892. mv conftest.h $ac_file
  2893. fi
  2894. fi; done
  2895. EOF
  2896. cat >> $CONFIG_STATUS <<EOF
  2897. EOF
  2898. cat >> $CONFIG_STATUS <<\EOF
  2899. chmod +x cln-config
  2900. exit 0
  2901. EOF
  2902. chmod +x $CONFIG_STATUS
  2903. rm -fr confdefs* $ac_clean_files
  2904. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1