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.

3233 lines
93 KiB

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