configure 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068
  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. cat >> confdefs.h <<\EOF
  14. #define COMPLEX 1
  15. EOF
  16. "
  17. ac_help="$ac_help
  18. cat >> confdefs.h <<\EOF
  19. #define SPARSE 1
  20. EOF
  21. "
  22. ac_help="$ac_help
  23. cat >> confdefs.h <<\EOF
  24. #define COMPLEX 1
  25. EOF
  26. "
  27. ac_help="$ac_help
  28. cat >> confdefs.h <<\EOF
  29. #define SPARSE 1
  30. EOF
  31. "
  32. ac_help="$ac_help
  33. cat >> confdefs.h <<\EOF
  34. #define VUNROLL 1
  35. EOF
  36. "
  37. ac_help="$ac_help
  38. cat >> confdefs.h <<\EOF
  39. #define MUNROLL 1
  40. EOF
  41. "
  42. ac_help="$ac_help
  43. cat >> confdefs.h <<\EOF
  44. #define SEGMENTED 1
  45. EOF
  46. "
  47. ac_help="$ac_help
  48. cat >> confdefs.h <<\EOF
  49. #define REAL_FLT 1
  50. EOF
  51. "
  52. ac_help="$ac_help
  53. cat >> confdefs.h <<\EOF
  54. #define REAL_DBL 1
  55. EOF
  56. "
  57. # Initialize some variables set by options.
  58. # The variables have the same names as the options, with
  59. # dashes changed to underlines.
  60. build=NONE
  61. cache_file=./config.cache
  62. exec_prefix=NONE
  63. host=NONE
  64. no_create=
  65. nonopt=NONE
  66. no_recursion=
  67. prefix=NONE
  68. program_prefix=NONE
  69. program_suffix=NONE
  70. program_transform_name=s,x,x,
  71. silent=
  72. site=
  73. srcdir=
  74. target=NONE
  75. verbose=
  76. x_includes=NONE
  77. x_libraries=NONE
  78. bindir='${exec_prefix}/bin'
  79. sbindir='${exec_prefix}/sbin'
  80. libexecdir='${exec_prefix}/libexec'
  81. datadir='${prefix}/share'
  82. sysconfdir='${prefix}/etc'
  83. sharedstatedir='${prefix}/com'
  84. localstatedir='${prefix}/var'
  85. libdir='${exec_prefix}/lib'
  86. includedir='${prefix}/include'
  87. oldincludedir='/usr/include'
  88. infodir='${prefix}/info'
  89. mandir='${prefix}/man'
  90. # Initialize some other variables.
  91. subdirs=
  92. MFLAGS= MAKEFLAGS=
  93. SHELL=${CONFIG_SHELL-/bin/sh}
  94. # Maximum number of lines to put in a shell here document.
  95. ac_max_here_lines=12
  96. ac_prev=
  97. for ac_option
  98. do
  99. # If the previous option needs an argument, assign it.
  100. if test -n "$ac_prev"; then
  101. eval "$ac_prev=\$ac_option"
  102. ac_prev=
  103. continue
  104. fi
  105. case "$ac_option" in
  106. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  107. *) ac_optarg= ;;
  108. esac
  109. # Accept the important Cygnus configure options, so we can diagnose typos.
  110. case "$ac_option" in
  111. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  112. ac_prev=bindir ;;
  113. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  114. bindir="$ac_optarg" ;;
  115. -build | --build | --buil | --bui | --bu)
  116. ac_prev=build ;;
  117. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  118. build="$ac_optarg" ;;
  119. -cache-file | --cache-file | --cache-fil | --cache-fi \
  120. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  121. ac_prev=cache_file ;;
  122. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  123. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  124. cache_file="$ac_optarg" ;;
  125. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  126. ac_prev=datadir ;;
  127. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  128. | --da=*)
  129. datadir="$ac_optarg" ;;
  130. -disable-* | --disable-*)
  131. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  132. # Reject names that are not valid shell variable names.
  133. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  134. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  135. fi
  136. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  137. eval "enable_${ac_feature}=no" ;;
  138. -enable-* | --enable-*)
  139. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  140. # Reject names that are not valid shell variable names.
  141. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  142. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  143. fi
  144. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  145. case "$ac_option" in
  146. *=*) ;;
  147. *) ac_optarg=yes ;;
  148. esac
  149. eval "enable_${ac_feature}='$ac_optarg'" ;;
  150. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  151. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  152. | --exec | --exe | --ex)
  153. ac_prev=exec_prefix ;;
  154. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  155. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  156. | --exec=* | --exe=* | --ex=*)
  157. exec_prefix="$ac_optarg" ;;
  158. -gas | --gas | --ga | --g)
  159. # Obsolete; use --with-gas.
  160. with_gas=yes ;;
  161. -help | --help | --hel | --he)
  162. # Omit some internal or obsolete options to make the list less imposing.
  163. # This message is too long to be a string in the A/UX 3.1 sh.
  164. cat << EOF
  165. Usage: configure [options] [host]
  166. Options: [defaults in brackets after descriptions]
  167. Configuration:
  168. --cache-file=FILE cache test results in FILE
  169. --help print this message
  170. --no-create do not create output files
  171. --quiet, --silent do not print \`checking...' messages
  172. --version print the version of autoconf that created configure
  173. Directory and file names:
  174. --prefix=PREFIX install architecture-independent files in PREFIX
  175. [$ac_default_prefix]
  176. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  177. [same as prefix]
  178. --bindir=DIR user executables in DIR [EPREFIX/bin]
  179. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  180. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  181. --datadir=DIR read-only architecture-independent data in DIR
  182. [PREFIX/share]
  183. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  184. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  185. [PREFIX/com]
  186. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  187. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  188. --includedir=DIR C header files in DIR [PREFIX/include]
  189. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  190. --infodir=DIR info documentation in DIR [PREFIX/info]
  191. --mandir=DIR man documentation in DIR [PREFIX/man]
  192. --srcdir=DIR find the sources in DIR [configure dir or ..]
  193. --program-prefix=PREFIX prepend PREFIX to installed program names
  194. --program-suffix=SUFFIX append SUFFIX to installed program names
  195. --program-transform-name=PROGRAM
  196. run sed PROGRAM on installed program names
  197. EOF
  198. cat << EOF
  199. Host type:
  200. --build=BUILD configure for building on BUILD [BUILD=HOST]
  201. --host=HOST configure for HOST [guessed]
  202. --target=TARGET configure for TARGET [TARGET=HOST]
  203. Features and packages:
  204. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  205. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  206. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  207. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  208. --x-includes=DIR X include files are in DIR
  209. --x-libraries=DIR X library files are in DIR
  210. EOF
  211. if test -n "$ac_help"; then
  212. echo "--enable and --with options recognized:$ac_help"
  213. fi
  214. exit 0 ;;
  215. -host | --host | --hos | --ho)
  216. ac_prev=host ;;
  217. -host=* | --host=* | --hos=* | --ho=*)
  218. host="$ac_optarg" ;;
  219. -includedir | --includedir | --includedi | --included | --include \
  220. | --includ | --inclu | --incl | --inc)
  221. ac_prev=includedir ;;
  222. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  223. | --includ=* | --inclu=* | --incl=* | --inc=*)
  224. includedir="$ac_optarg" ;;
  225. -infodir | --infodir | --infodi | --infod | --info | --inf)
  226. ac_prev=infodir ;;
  227. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  228. infodir="$ac_optarg" ;;
  229. -libdir | --libdir | --libdi | --libd)
  230. ac_prev=libdir ;;
  231. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  232. libdir="$ac_optarg" ;;
  233. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  234. | --libexe | --libex | --libe)
  235. ac_prev=libexecdir ;;
  236. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  237. | --libexe=* | --libex=* | --libe=*)
  238. libexecdir="$ac_optarg" ;;
  239. -localstatedir | --localstatedir | --localstatedi | --localstated \
  240. | --localstate | --localstat | --localsta | --localst \
  241. | --locals | --local | --loca | --loc | --lo)
  242. ac_prev=localstatedir ;;
  243. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  244. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  245. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  246. localstatedir="$ac_optarg" ;;
  247. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  248. ac_prev=mandir ;;
  249. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  250. mandir="$ac_optarg" ;;
  251. -nfp | --nfp | --nf)
  252. # Obsolete; use --without-fp.
  253. with_fp=no ;;
  254. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  255. | --no-cr | --no-c)
  256. no_create=yes ;;
  257. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  258. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  259. no_recursion=yes ;;
  260. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  261. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  262. | --oldin | --oldi | --old | --ol | --o)
  263. ac_prev=oldincludedir ;;
  264. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  265. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  266. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  267. oldincludedir="$ac_optarg" ;;
  268. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  269. ac_prev=prefix ;;
  270. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  271. prefix="$ac_optarg" ;;
  272. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  273. | --program-pre | --program-pr | --program-p)
  274. ac_prev=program_prefix ;;
  275. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  276. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  277. program_prefix="$ac_optarg" ;;
  278. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  279. | --program-suf | --program-su | --program-s)
  280. ac_prev=program_suffix ;;
  281. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  282. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  283. program_suffix="$ac_optarg" ;;
  284. -program-transform-name | --program-transform-name \
  285. | --program-transform-nam | --program-transform-na \
  286. | --program-transform-n | --program-transform- \
  287. | --program-transform | --program-transfor \
  288. | --program-transfo | --program-transf \
  289. | --program-trans | --program-tran \
  290. | --progr-tra | --program-tr | --program-t)
  291. ac_prev=program_transform_name ;;
  292. -program-transform-name=* | --program-transform-name=* \
  293. | --program-transform-nam=* | --program-transform-na=* \
  294. | --program-transform-n=* | --program-transform-=* \
  295. | --program-transform=* | --program-transfor=* \
  296. | --program-transfo=* | --program-transf=* \
  297. | --program-trans=* | --program-tran=* \
  298. | --progr-tra=* | --program-tr=* | --program-t=*)
  299. program_transform_name="$ac_optarg" ;;
  300. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  301. | -silent | --silent | --silen | --sile | --sil)
  302. silent=yes ;;
  303. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  304. ac_prev=sbindir ;;
  305. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  306. | --sbi=* | --sb=*)
  307. sbindir="$ac_optarg" ;;
  308. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  309. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  310. | --sharedst | --shareds | --shared | --share | --shar \
  311. | --sha | --sh)
  312. ac_prev=sharedstatedir ;;
  313. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  314. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  315. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  316. | --sha=* | --sh=*)
  317. sharedstatedir="$ac_optarg" ;;
  318. -site | --site | --sit)
  319. ac_prev=site ;;
  320. -site=* | --site=* | --sit=*)
  321. site="$ac_optarg" ;;
  322. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  323. ac_prev=srcdir ;;
  324. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  325. srcdir="$ac_optarg" ;;
  326. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  327. | --syscon | --sysco | --sysc | --sys | --sy)
  328. ac_prev=sysconfdir ;;
  329. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  330. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  331. sysconfdir="$ac_optarg" ;;
  332. -target | --target | --targe | --targ | --tar | --ta | --t)
  333. ac_prev=target ;;
  334. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  335. target="$ac_optarg" ;;
  336. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  337. verbose=yes ;;
  338. -version | --version | --versio | --versi | --vers)
  339. echo "configure generated by autoconf version 2.13"
  340. exit 0 ;;
  341. -with-* | --with-*)
  342. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  343. # Reject names that are not valid shell variable names.
  344. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  345. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  346. fi
  347. ac_package=`echo $ac_package| sed 's/-/_/g'`
  348. case "$ac_option" in
  349. *=*) ;;
  350. *) ac_optarg=yes ;;
  351. esac
  352. eval "with_${ac_package}='$ac_optarg'" ;;
  353. -without-* | --without-*)
  354. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  355. # Reject names that are not valid shell variable names.
  356. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  357. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  358. fi
  359. ac_package=`echo $ac_package| sed 's/-/_/g'`
  360. eval "with_${ac_package}=no" ;;
  361. --x)
  362. # Obsolete; use --with-x.
  363. with_x=yes ;;
  364. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  365. | --x-incl | --x-inc | --x-in | --x-i)
  366. ac_prev=x_includes ;;
  367. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  368. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  369. x_includes="$ac_optarg" ;;
  370. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  371. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  372. ac_prev=x_libraries ;;
  373. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  374. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  375. x_libraries="$ac_optarg" ;;
  376. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  377. ;;
  378. *)
  379. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  380. echo "configure: warning: $ac_option: invalid host type" 1>&2
  381. fi
  382. if test "x$nonopt" != xNONE; then
  383. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  384. fi
  385. nonopt="$ac_option"
  386. ;;
  387. esac
  388. done
  389. if test -n "$ac_prev"; then
  390. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  391. fi
  392. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  393. # File descriptor usage:
  394. # 0 standard input
  395. # 1 file creation
  396. # 2 errors and warnings
  397. # 3 some systems may open it to /dev/tty
  398. # 4 used on the Kubota Titan
  399. # 6 checking for... messages and results
  400. # 5 compiler messages saved in config.log
  401. if test "$silent" = yes; then
  402. exec 6>/dev/null
  403. else
  404. exec 6>&1
  405. fi
  406. exec 5>./config.log
  407. echo "\
  408. This file contains any messages produced by compilers while
  409. running configure, to aid debugging if configure makes a mistake.
  410. " 1>&5
  411. # Strip out --no-create and --no-recursion so they do not pile up.
  412. # Also quote any args containing shell metacharacters.
  413. ac_configure_args=
  414. for ac_arg
  415. do
  416. case "$ac_arg" in
  417. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  418. | --no-cr | --no-c) ;;
  419. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  420. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  421. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  422. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  423. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  424. esac
  425. done
  426. # NLS nuisances.
  427. # Only set these to C if already set. These must not be set unconditionally
  428. # because not all systems understand e.g. LANG=C (notably SCO).
  429. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  430. # Non-C LC_CTYPE values break the ctype check.
  431. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  432. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  433. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  434. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  435. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  436. rm -rf conftest* confdefs.h
  437. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  438. echo > confdefs.h
  439. # A filename unique to this package, relative to the directory that
  440. # configure is in, which we can look for to find out if srcdir is correct.
  441. ac_unique_file=err.c
  442. # Find the source files, if location was not specified.
  443. if test -z "$srcdir"; then
  444. ac_srcdir_defaulted=yes
  445. # Try the directory containing this script, then its parent.
  446. ac_prog=$0
  447. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  448. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  449. srcdir=$ac_confdir
  450. if test ! -r $srcdir/$ac_unique_file; then
  451. srcdir=..
  452. fi
  453. else
  454. ac_srcdir_defaulted=no
  455. fi
  456. if test ! -r $srcdir/$ac_unique_file; then
  457. if test "$ac_srcdir_defaulted" = yes; then
  458. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  459. else
  460. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  461. fi
  462. fi
  463. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  464. # Prefer explicitly selected file to automatically selected ones.
  465. if test -z "$CONFIG_SITE"; then
  466. if test "x$prefix" != xNONE; then
  467. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  468. else
  469. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  470. fi
  471. fi
  472. for ac_site_file in $CONFIG_SITE; do
  473. if test -r "$ac_site_file"; then
  474. echo "loading site script $ac_site_file"
  475. . "$ac_site_file"
  476. fi
  477. done
  478. if test -r "$cache_file"; then
  479. echo "loading cache $cache_file"
  480. . $cache_file
  481. else
  482. echo "creating cache $cache_file"
  483. > $cache_file
  484. fi
  485. ac_ext=c
  486. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  487. ac_cpp='$CPP $CPPFLAGS'
  488. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  489. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  490. cross_compiling=$ac_cv_prog_cc_cross
  491. ac_exeext=
  492. ac_objext=o
  493. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  494. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  495. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  496. ac_n= ac_c='
  497. ' ac_t=' '
  498. else
  499. ac_n=-n ac_c= ac_t=
  500. fi
  501. else
  502. ac_n= ac_c='\c' ac_t=
  503. fi
  504. PROGS=""
  505. # Extract the first word of "acc", so it can be a program name with args.
  506. set dummy acc; ac_word=$2
  507. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  508. echo "configure:575: checking for $ac_word" >&5
  509. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  510. echo $ac_n "(cached) $ac_c" 1>&6
  511. else
  512. if test -n "$CC"; then
  513. ac_cv_prog_CC="$CC" # Let the user override the test.
  514. else
  515. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  516. ac_dummy="$PATH"
  517. for ac_dir in $ac_dummy; do
  518. test -z "$ac_dir" && ac_dir=.
  519. if test -f $ac_dir/$ac_word; then
  520. ac_cv_prog_CC="acc"
  521. break
  522. fi
  523. done
  524. IFS="$ac_save_ifs"
  525. test -z "$ac_cv_prog_CC" && ac_cv_prog_CC=""""
  526. fi
  527. fi
  528. CC="$ac_cv_prog_CC"
  529. if test -n "$CC"; then
  530. echo "$ac_t""$CC" 1>&6
  531. else
  532. echo "$ac_t""no" 1>&6
  533. fi
  534. # Extract the first word of "cc", so it can be a program name with args.
  535. set dummy cc; ac_word=$2
  536. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  537. echo "configure:605: checking for $ac_word" >&5
  538. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  539. echo $ac_n "(cached) $ac_c" 1>&6
  540. else
  541. if test -n "$CC"; then
  542. ac_cv_prog_CC="$CC" # Let the user override the test.
  543. else
  544. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  545. ac_dummy="$PATH"
  546. for ac_dir in $ac_dummy; do
  547. test -z "$ac_dir" && ac_dir=.
  548. if test -f $ac_dir/$ac_word; then
  549. ac_cv_prog_CC="cc"
  550. break
  551. fi
  552. done
  553. IFS="$ac_save_ifs"
  554. test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
  555. fi
  556. fi
  557. CC="$ac_cv_prog_CC"
  558. if test -n "$CC"; then
  559. echo "$ac_t""$CC" 1>&6
  560. else
  561. echo "$ac_t""no" 1>&6
  562. fi
  563. # Extract the first word of "gcc", so it can be a program name with args.
  564. set dummy gcc; ac_word=$2
  565. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  566. echo "configure:635: checking for $ac_word" >&5
  567. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  568. echo $ac_n "(cached) $ac_c" 1>&6
  569. else
  570. if test -n "$CC"; then
  571. ac_cv_prog_CC="$CC" # Let the user override the test.
  572. else
  573. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  574. ac_dummy="$PATH"
  575. for ac_dir in $ac_dummy; do
  576. test -z "$ac_dir" && ac_dir=.
  577. if test -f $ac_dir/$ac_word; then
  578. ac_cv_prog_CC="gcc"
  579. break
  580. fi
  581. done
  582. IFS="$ac_save_ifs"
  583. fi
  584. fi
  585. CC="$ac_cv_prog_CC"
  586. if test -n "$CC"; then
  587. echo "$ac_t""$CC" 1>&6
  588. else
  589. echo "$ac_t""no" 1>&6
  590. fi
  591. if test -z "$CC"; then
  592. # Extract the first word of "cc", so it can be a program name with args.
  593. set dummy cc; ac_word=$2
  594. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  595. echo "configure:665: checking for $ac_word" >&5
  596. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  597. echo $ac_n "(cached) $ac_c" 1>&6
  598. else
  599. if test -n "$CC"; then
  600. ac_cv_prog_CC="$CC" # Let the user override the test.
  601. else
  602. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  603. ac_prog_rejected=no
  604. ac_dummy="$PATH"
  605. for ac_dir in $ac_dummy; do
  606. test -z "$ac_dir" && ac_dir=.
  607. if test -f $ac_dir/$ac_word; then
  608. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  609. ac_prog_rejected=yes
  610. continue
  611. fi
  612. ac_cv_prog_CC="cc"
  613. break
  614. fi
  615. done
  616. IFS="$ac_save_ifs"
  617. if test $ac_prog_rejected = yes; then
  618. # We found a bogon in the path, so make sure we never use it.
  619. set dummy $ac_cv_prog_CC
  620. shift
  621. if test $# -gt 0; then
  622. # We chose a different compiler from the bogus one.
  623. # However, it has the same basename, so the bogon will be chosen
  624. # first if we set CC to just the basename; use the full file name.
  625. shift
  626. set dummy "$ac_dir/$ac_word" "$@"
  627. shift
  628. ac_cv_prog_CC="$@"
  629. fi
  630. fi
  631. fi
  632. fi
  633. CC="$ac_cv_prog_CC"
  634. if test -n "$CC"; then
  635. echo "$ac_t""$CC" 1>&6
  636. else
  637. echo "$ac_t""no" 1>&6
  638. fi
  639. if test -z "$CC"; then
  640. case "`uname -s`" in
  641. *win32* | *WIN32*)
  642. # Extract the first word of "cl", so it can be a program name with args.
  643. set dummy cl; ac_word=$2
  644. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  645. echo "configure:716: checking for $ac_word" >&5
  646. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  647. echo $ac_n "(cached) $ac_c" 1>&6
  648. else
  649. if test -n "$CC"; then
  650. ac_cv_prog_CC="$CC" # Let the user override the test.
  651. else
  652. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  653. ac_dummy="$PATH"
  654. for ac_dir in $ac_dummy; do
  655. test -z "$ac_dir" && ac_dir=.
  656. if test -f $ac_dir/$ac_word; then
  657. ac_cv_prog_CC="cl"
  658. break
  659. fi
  660. done
  661. IFS="$ac_save_ifs"
  662. fi
  663. fi
  664. CC="$ac_cv_prog_CC"
  665. if test -n "$CC"; then
  666. echo "$ac_t""$CC" 1>&6
  667. else
  668. echo "$ac_t""no" 1>&6
  669. fi
  670. ;;
  671. esac
  672. fi
  673. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  674. fi
  675. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  676. echo "configure:748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  677. ac_ext=c
  678. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  679. ac_cpp='$CPP $CPPFLAGS'
  680. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  681. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  682. cross_compiling=$ac_cv_prog_cc_cross
  683. cat > conftest.$ac_ext << EOF
  684. #line 759 "configure"
  685. #include "confdefs.h"
  686. main(){return(0);}
  687. EOF
  688. if { (eval echo configure:764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  689. ac_cv_prog_cc_works=yes
  690. # If we can't run a trivial program, we are probably using a cross compiler.
  691. if (./conftest; exit) 2>/dev/null; then
  692. ac_cv_prog_cc_cross=no
  693. else
  694. ac_cv_prog_cc_cross=yes
  695. fi
  696. else
  697. echo "configure: failed program was:" >&5
  698. cat conftest.$ac_ext >&5
  699. ac_cv_prog_cc_works=no
  700. fi
  701. rm -fr conftest*
  702. ac_ext=c
  703. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  704. ac_cpp='$CPP $CPPFLAGS'
  705. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  706. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  707. cross_compiling=$ac_cv_prog_cc_cross
  708. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  709. if test $ac_cv_prog_cc_works = no; then
  710. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  711. fi
  712. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  713. echo "configure:790: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  714. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  715. cross_compiling=$ac_cv_prog_cc_cross
  716. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  717. echo "configure:795: checking whether we are using GNU C" >&5
  718. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  719. echo $ac_n "(cached) $ac_c" 1>&6
  720. else
  721. cat > conftest.c <<EOF
  722. #ifdef __GNUC__
  723. yes;
  724. #endif
  725. EOF
  726. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  727. ac_cv_prog_gcc=yes
  728. else
  729. ac_cv_prog_gcc=no
  730. fi
  731. fi
  732. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  733. if test $ac_cv_prog_gcc = yes; then
  734. GCC=yes
  735. else
  736. GCC=
  737. fi
  738. ac_test_CFLAGS="${CFLAGS+set}"
  739. ac_save_CFLAGS="$CFLAGS"
  740. CFLAGS=
  741. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  742. echo "configure:823: checking whether ${CC-cc} accepts -g" >&5
  743. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  744. echo $ac_n "(cached) $ac_c" 1>&6
  745. else
  746. echo 'void f(){}' > conftest.c
  747. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  748. ac_cv_prog_cc_g=yes
  749. else
  750. ac_cv_prog_cc_g=no
  751. fi
  752. rm -f conftest*
  753. fi
  754. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  755. if test "$ac_test_CFLAGS" = set; then
  756. CFLAGS="$ac_save_CFLAGS"
  757. elif test $ac_cv_prog_cc_g = yes; then
  758. if test "$GCC" = yes; then
  759. CFLAGS="-g -O2"
  760. else
  761. CFLAGS="-g"
  762. fi
  763. else
  764. if test "$GCC" = yes; then
  765. CFLAGS="-O2"
  766. else
  767. CFLAGS=
  768. fi
  769. fi
  770. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  771. echo "configure:855: checking how to run the C preprocessor" >&5
  772. # On Suns, sometimes $CPP names a directory.
  773. if test -n "$CPP" && test -d "$CPP"; then
  774. CPP=
  775. fi
  776. if test -z "$CPP"; then
  777. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  778. echo $ac_n "(cached) $ac_c" 1>&6
  779. else
  780. # This must be in double quotes, not single quotes, because CPP may get
  781. # substituted into the Makefile and "${CC-cc}" will confuse make.
  782. CPP="${CC-cc} -E"
  783. # On the NeXT, cc -E runs the code through the compiler's parser,
  784. # not just through cpp.
  785. cat > conftest.$ac_ext <<EOF
  786. #line 870 "configure"
  787. #include "confdefs.h"
  788. #include <assert.h>
  789. Syntax Error
  790. EOF
  791. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  792. { (eval echo configure:876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  793. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  794. if test -z "$ac_err"; then
  795. :
  796. else
  797. echo "$ac_err" >&5
  798. echo "configure: failed program was:" >&5
  799. cat conftest.$ac_ext >&5
  800. rm -rf conftest*
  801. CPP="${CC-cc} -E -traditional-cpp"
  802. cat > conftest.$ac_ext <<EOF
  803. #line 887 "configure"
  804. #include "confdefs.h"
  805. #include <assert.h>
  806. Syntax Error
  807. EOF
  808. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  809. { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  810. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  811. if test -z "$ac_err"; then
  812. :
  813. else
  814. echo "$ac_err" >&5
  815. echo "configure: failed program was:" >&5
  816. cat conftest.$ac_ext >&5
  817. rm -rf conftest*
  818. CPP="${CC-cc} -nologo -E"
  819. cat > conftest.$ac_ext <<EOF
  820. #line 904 "configure"
  821. #include "confdefs.h"
  822. #include <assert.h>
  823. Syntax Error
  824. EOF
  825. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  826. { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  827. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  828. if test -z "$ac_err"; then
  829. :
  830. else
  831. echo "$ac_err" >&5
  832. echo "configure: failed program was:" >&5
  833. cat conftest.$ac_ext >&5
  834. rm -rf conftest*
  835. CPP=/lib/cpp
  836. fi
  837. rm -f conftest*
  838. fi
  839. rm -f conftest*
  840. fi
  841. rm -f conftest*
  842. ac_cv_prog_CPP="$CPP"
  843. fi
  844. CPP="$ac_cv_prog_CPP"
  845. else
  846. ac_cv_prog_CPP="$CPP"
  847. fi
  848. echo "$ac_t""$CPP" 1>&6
  849. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  850. echo "configure:935: checking for AIX" >&5
  851. cat > conftest.$ac_ext <<EOF
  852. #line 937 "configure"
  853. #include "confdefs.h"
  854. #ifdef _AIX
  855. yes
  856. #endif
  857. EOF
  858. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  859. egrep "yes" >/dev/null 2>&1; then
  860. rm -rf conftest*
  861. echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  862. #define _ALL_SOURCE 1
  863. EOF
  864. else
  865. rm -rf conftest*
  866. echo "$ac_t""no" 1>&6
  867. fi
  868. rm -f conftest*
  869. AC_HPUX
  870. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  871. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  872. echo "configure:961: checking for minix/config.h" >&5
  873. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  874. echo $ac_n "(cached) $ac_c" 1>&6
  875. else
  876. cat > conftest.$ac_ext <<EOF
  877. #line 966 "configure"
  878. #include "confdefs.h"
  879. #include <minix/config.h>
  880. EOF
  881. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  882. { (eval echo configure:971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  883. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  884. if test -z "$ac_err"; then
  885. rm -rf conftest*
  886. eval "ac_cv_header_$ac_safe=yes"
  887. else
  888. echo "$ac_err" >&5
  889. echo "configure: failed program was:" >&5
  890. cat conftest.$ac_ext >&5
  891. rm -rf conftest*
  892. eval "ac_cv_header_$ac_safe=no"
  893. fi
  894. rm -f conftest*
  895. fi
  896. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  897. echo "$ac_t""yes" 1>&6
  898. MINIX=yes
  899. else
  900. echo "$ac_t""no" 1>&6
  901. MINIX=
  902. fi
  903. if test "$MINIX" = yes; then
  904. cat >> confdefs.h <<\EOF
  905. #define _POSIX_SOURCE 1
  906. EOF
  907. cat >> confdefs.h <<\EOF
  908. #define _POSIX_1_SOURCE 2
  909. EOF
  910. cat >> confdefs.h <<\EOF
  911. #define _MINIX 1
  912. EOF
  913. fi
  914. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  915. echo "configure:1009: checking for POSIXized ISC" >&5
  916. if test -d /etc/conf/kconfig.d &&
  917. grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  918. then
  919. echo "$ac_t""yes" 1>&6
  920. ISC=yes # If later tests want to check for ISC.
  921. cat >> confdefs.h <<\EOF
  922. #define _POSIX_SOURCE 1
  923. EOF
  924. if test "$GCC" = yes; then
  925. CC="$CC -posix"
  926. else
  927. CC="$CC -Xp"
  928. fi
  929. else
  930. echo "$ac_t""no" 1>&6
  931. ISC=
  932. fi
  933. # Extract the first word of "ranlib", so it can be a program name with args.
  934. set dummy ranlib; ac_word=$2
  935. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  936. echo "configure:1032: checking for $ac_word" >&5
  937. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  938. echo $ac_n "(cached) $ac_c" 1>&6
  939. else
  940. if test -n "$RANLIB"; then
  941. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  942. else
  943. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  944. ac_dummy="$PATH"
  945. for ac_dir in $ac_dummy; do
  946. test -z "$ac_dir" && ac_dir=.
  947. if test -f $ac_dir/$ac_word; then
  948. ac_cv_prog_RANLIB="ranlib"
  949. break
  950. fi
  951. done
  952. IFS="$ac_save_ifs"
  953. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  954. fi
  955. fi
  956. RANLIB="$ac_cv_prog_RANLIB"
  957. if test -n "$RANLIB"; then
  958. echo "$ac_t""$RANLIB" 1>&6
  959. else
  960. echo "$ac_t""no" 1>&6
  961. fi
  962. for ac_hdr in memory.h
  963. do
  964. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  965. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  966. echo "configure:1063: checking for $ac_hdr" >&5
  967. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  968. echo $ac_n "(cached) $ac_c" 1>&6
  969. else
  970. cat > conftest.$ac_ext <<EOF
  971. #line 1068 "configure"
  972. #include "confdefs.h"
  973. #include <$ac_hdr>
  974. EOF
  975. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  976. { (eval echo configure:1073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  977. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  978. if test -z "$ac_err"; then
  979. rm -rf conftest*
  980. eval "ac_cv_header_$ac_safe=yes"
  981. else
  982. echo "$ac_err" >&5
  983. echo "configure: failed program was:" >&5
  984. cat conftest.$ac_ext >&5
  985. rm -rf conftest*
  986. eval "ac_cv_header_$ac_safe=no"
  987. fi
  988. rm -f conftest*
  989. fi
  990. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  991. echo "$ac_t""yes" 1>&6
  992. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  993. cat >> confdefs.h <<EOF
  994. #define $ac_tr_hdr 1
  995. EOF
  996. else
  997. echo "$ac_t""no" 1>&6
  998. fi
  999. done
  1000. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1001. echo "configure:1100: checking for ANSI C header files" >&5
  1002. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1003. echo $ac_n "(cached) $ac_c" 1>&6
  1004. else
  1005. cat > conftest.$ac_ext <<EOF
  1006. #line 1105 "configure"
  1007. #include "confdefs.h"
  1008. #include <stdlib.h>
  1009. #include <stdarg.h>
  1010. #include <string.h>
  1011. #include <float.h>
  1012. EOF
  1013. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1014. { (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1015. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1016. if test -z "$ac_err"; then
  1017. rm -rf conftest*
  1018. ac_cv_header_stdc=yes
  1019. else
  1020. echo "$ac_err" >&5
  1021. echo "configure: failed program was:" >&5
  1022. cat conftest.$ac_ext >&5
  1023. rm -rf conftest*
  1024. ac_cv_header_stdc=no
  1025. fi
  1026. rm -f conftest*
  1027. if test $ac_cv_header_stdc = yes; then
  1028. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1029. cat > conftest.$ac_ext <<EOF
  1030. #line 1130 "configure"
  1031. #include "confdefs.h"
  1032. #include <string.h>
  1033. EOF
  1034. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1035. egrep "memchr" >/dev/null 2>&1; then
  1036. :
  1037. else
  1038. rm -rf conftest*
  1039. ac_cv_header_stdc=no
  1040. fi
  1041. rm -f conftest*
  1042. fi
  1043. if test $ac_cv_header_stdc = yes; then
  1044. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1045. cat > conftest.$ac_ext <<EOF
  1046. #line 1148 "configure"
  1047. #include "confdefs.h"
  1048. #include <stdlib.h>
  1049. EOF
  1050. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1051. egrep "free" >/dev/null 2>&1; then
  1052. :
  1053. else
  1054. rm -rf conftest*
  1055. ac_cv_header_stdc=no
  1056. fi
  1057. rm -f conftest*
  1058. fi
  1059. if test $ac_cv_header_stdc = yes; then
  1060. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1061. if test "$cross_compiling" = yes; then
  1062. :
  1063. else
  1064. cat > conftest.$ac_ext <<EOF
  1065. #line 1169 "configure"
  1066. #include "confdefs.h"
  1067. #include <ctype.h>
  1068. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1069. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1070. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1071. int main () { int i; for (i = 0; i < 256; i++)
  1072. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1073. exit (0); }
  1074. EOF
  1075. if { (eval echo configure:1180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1076. then
  1077. :
  1078. else
  1079. echo "configure: failed program was:" >&5
  1080. cat conftest.$ac_ext >&5
  1081. rm -fr conftest*
  1082. ac_cv_header_stdc=no
  1083. fi
  1084. rm -fr conftest*
  1085. fi
  1086. fi
  1087. fi
  1088. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1089. if test $ac_cv_header_stdc = yes; then
  1090. cat >> confdefs.h <<\EOF
  1091. #define STDC_HEADERS 1
  1092. EOF
  1093. fi
  1094. ac_safe=`echo "complex.h" | sed 'y%./+-%__p_%'`
  1095. echo $ac_n "checking for complex.h""... $ac_c" 1>&6
  1096. echo "configure:1205: checking for complex.h" >&5
  1097. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1098. echo $ac_n "(cached) $ac_c" 1>&6
  1099. else
  1100. cat > conftest.$ac_ext <<EOF
  1101. #line 1210 "configure"
  1102. #include "confdefs.h"
  1103. #include <complex.h>
  1104. EOF
  1105. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1106. { (eval echo configure:1215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1107. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1108. if test -z "$ac_err"; then
  1109. rm -rf conftest*
  1110. eval "ac_cv_header_$ac_safe=yes"
  1111. else
  1112. echo "$ac_err" >&5
  1113. echo "configure: failed program was:" >&5
  1114. cat conftest.$ac_ext >&5
  1115. rm -rf conftest*
  1116. eval "ac_cv_header_$ac_safe=no"
  1117. fi
  1118. rm -f conftest*
  1119. fi
  1120. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1121. echo "$ac_t""yes" 1>&6
  1122. cat >> confdefs.h <<\EOF
  1123. #define HAVE_COMPLEX_H 1
  1124. EOF
  1125. else
  1126. echo "$ac_t""no" 1>&6
  1127. fi
  1128. ac_safe=`echo "malloc.h" | sed 'y%./+-%__p_%'`
  1129. echo $ac_n "checking for malloc.h""... $ac_c" 1>&6
  1130. echo "configure:1241: checking for malloc.h" >&5
  1131. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1132. echo $ac_n "(cached) $ac_c" 1>&6
  1133. else
  1134. cat > conftest.$ac_ext <<EOF
  1135. #line 1246 "configure"
  1136. #include "confdefs.h"
  1137. #include <malloc.h>
  1138. EOF
  1139. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1140. { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1141. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1142. if test -z "$ac_err"; then
  1143. rm -rf conftest*
  1144. eval "ac_cv_header_$ac_safe=yes"
  1145. else
  1146. echo "$ac_err" >&5
  1147. echo "configure: failed program was:" >&5
  1148. cat conftest.$ac_ext >&5
  1149. rm -rf conftest*
  1150. eval "ac_cv_header_$ac_safe=no"
  1151. fi
  1152. rm -f conftest*
  1153. fi
  1154. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1155. echo "$ac_t""yes" 1>&6
  1156. cat >> confdefs.h <<\EOF
  1157. #define HAVE_MALLOC_H 1
  1158. EOF
  1159. else
  1160. echo "$ac_t""no" 1>&6
  1161. fi
  1162. ac_safe=`echo "varargs.h" | sed 'y%./+-%__p_%'`
  1163. echo $ac_n "checking for varargs.h""... $ac_c" 1>&6
  1164. echo "configure:1277: checking for varargs.h" >&5
  1165. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1166. echo $ac_n "(cached) $ac_c" 1>&6
  1167. else
  1168. cat > conftest.$ac_ext <<EOF
  1169. #line 1282 "configure"
  1170. #include "confdefs.h"
  1171. #include <varargs.h>
  1172. EOF
  1173. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1174. { (eval echo configure:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1175. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1176. if test -z "$ac_err"; then
  1177. rm -rf conftest*
  1178. eval "ac_cv_header_$ac_safe=yes"
  1179. else
  1180. echo "$ac_err" >&5
  1181. echo "configure: failed program was:" >&5
  1182. cat conftest.$ac_ext >&5
  1183. rm -rf conftest*
  1184. eval "ac_cv_header_$ac_safe=no"
  1185. fi
  1186. rm -f conftest*
  1187. fi
  1188. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1189. echo "$ac_t""yes" 1>&6
  1190. cat >> confdefs.h <<\EOF
  1191. #define VARARGS 1
  1192. EOF
  1193. else
  1194. echo "$ac_t""no" 1>&6
  1195. fi
  1196. cat >> confdefs.h <<\EOF
  1197. #define NOT_SEGMENTED 1
  1198. EOF
  1199. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1200. echo "configure:1316: checking for size_t" >&5
  1201. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1202. echo $ac_n "(cached) $ac_c" 1>&6
  1203. else
  1204. cat > conftest.$ac_ext <<EOF
  1205. #line 1321 "configure"
  1206. #include "confdefs.h"
  1207. #include <sys/types.h>
  1208. #if STDC_HEADERS
  1209. #include <stdlib.h>
  1210. #include <stddef.h>
  1211. #endif
  1212. EOF
  1213. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1214. egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1215. rm -rf conftest*
  1216. ac_cv_type_size_t=yes
  1217. else
  1218. rm -rf conftest*
  1219. ac_cv_type_size_t=no
  1220. fi
  1221. rm -f conftest*
  1222. fi
  1223. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1224. if test $ac_cv_type_size_t = no; then
  1225. cat >> confdefs.h <<\EOF
  1226. #define size_t unsigned
  1227. EOF
  1228. fi
  1229. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1230. echo "configure:1349: checking for working const" >&5
  1231. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1232. echo $ac_n "(cached) $ac_c" 1>&6
  1233. else
  1234. cat > conftest.$ac_ext <<EOF
  1235. #line 1354 "configure"
  1236. #include "confdefs.h"
  1237. int main() {
  1238. /* Ultrix mips cc rejects this. */
  1239. typedef int charset[2]; const charset x;
  1240. /* SunOS 4.1.1 cc rejects this. */
  1241. char const *const *ccp;
  1242. char **p;
  1243. /* NEC SVR4.0.2 mips cc rejects this. */
  1244. struct point {int x, y;};
  1245. static struct point const zero = {0,0};
  1246. /* AIX XL C 1.02.0.0 rejects this.
  1247. It does not let you subtract one const X* pointer from another in an arm
  1248. of an if-expression whose if-part is not a constant expression */
  1249. const char *g = "string";
  1250. ccp = &g + (g ? g-g : 0);
  1251. /* HPUX 7.0 cc rejects these. */
  1252. ++ccp;
  1253. p = (char**) ccp;
  1254. ccp = (char const *const *) p;
  1255. { /* SCO 3.2v4 cc rejects this. */
  1256. char *t;
  1257. char const *s = 0 ? (char *) 0 : (char const *) 0;
  1258. *t++ = 0;
  1259. }
  1260. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  1261. int x[] = {25, 17};
  1262. const int *foo = &x[0];
  1263. ++foo;
  1264. }
  1265. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1266. typedef const int *iptr;
  1267. iptr p = 0;
  1268. ++p;
  1269. }
  1270. { /* AIX XL C 1.02.0.0 rejects this saying
  1271. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1272. struct s { int j; const int *ap[3]; };
  1273. struct s *b; b->j = 5;
  1274. }
  1275. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1276. const int foo = 10;
  1277. }
  1278. ; return 0; }
  1279. EOF
  1280. if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1281. rm -rf conftest*
  1282. ac_cv_c_const=yes
  1283. else
  1284. echo "configure: failed program was:" >&5
  1285. cat conftest.$ac_ext >&5
  1286. rm -rf conftest*
  1287. ac_cv_c_const=no
  1288. fi
  1289. rm -f conftest*
  1290. fi
  1291. echo "$ac_t""$ac_cv_c_const" 1>&6
  1292. if test $ac_cv_c_const = no; then
  1293. cat >> confdefs.h <<\EOF
  1294. #define const
  1295. EOF
  1296. fi
  1297. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1298. echo "configure:1424: checking whether byte ordering is bigendian" >&5
  1299. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1300. echo $ac_n "(cached) $ac_c" 1>&6
  1301. else
  1302. ac_cv_c_bigendian=unknown
  1303. # See if sys/param.h defines the BYTE_ORDER macro.
  1304. cat > conftest.$ac_ext <<EOF
  1305. #line 1431 "configure"
  1306. #include "confdefs.h"
  1307. #include <sys/types.h>
  1308. #include <sys/param.h>
  1309. int main() {
  1310. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1311. bogus endian macros
  1312. #endif
  1313. ; return 0; }
  1314. EOF
  1315. if { (eval echo configure:1442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1316. rm -rf conftest*
  1317. # It does; now see whether it defined to BIG_ENDIAN or not.
  1318. cat > conftest.$ac_ext <<EOF
  1319. #line 1446 "configure"
  1320. #include "confdefs.h"
  1321. #include <sys/types.h>
  1322. #include <sys/param.h>
  1323. int main() {
  1324. #if BYTE_ORDER != BIG_ENDIAN
  1325. not big endian
  1326. #endif
  1327. ; return 0; }
  1328. EOF
  1329. if { (eval echo configure:1457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1330. rm -rf conftest*
  1331. ac_cv_c_bigendian=yes
  1332. else
  1333. echo "configure: failed program was:" >&5
  1334. cat conftest.$ac_ext >&5
  1335. rm -rf conftest*
  1336. ac_cv_c_bigendian=no
  1337. fi
  1338. rm -f conftest*
  1339. else
  1340. echo "configure: failed program was:" >&5
  1341. cat conftest.$ac_ext >&5
  1342. fi
  1343. rm -f conftest*
  1344. if test $ac_cv_c_bigendian = unknown; then
  1345. if test "$cross_compiling" = yes; then
  1346. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1347. else
  1348. cat > conftest.$ac_ext <<EOF
  1349. #line 1477 "configure"
  1350. #include "confdefs.h"
  1351. main () {
  1352. /* Are we little or big endian? From Harbison&Steele. */
  1353. union
  1354. {
  1355. long l;
  1356. char c[sizeof (long)];
  1357. } u;
  1358. u.l = 1;
  1359. exit (u.c[sizeof (long) - 1] == 1);
  1360. }
  1361. EOF
  1362. if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1363. then
  1364. ac_cv_c_bigendian=no
  1365. else
  1366. echo "configure: failed program was:" >&5
  1367. cat conftest.$ac_ext >&5
  1368. rm -fr conftest*
  1369. ac_cv_c_bigendian=yes
  1370. fi
  1371. rm -fr conftest*
  1372. fi
  1373. fi
  1374. fi
  1375. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  1376. if test $ac_cv_c_bigendian = yes; then
  1377. cat >> confdefs.h <<\EOF
  1378. #define WORDS_BIGENDIAN 1
  1379. EOF
  1380. fi
  1381. # Check whether --with-complex or --without-complex was given.
  1382. if test "${with_complex+set}" = set; then
  1383. withval="$with_complex"
  1384. :
  1385. fi
  1386. # Check whether --with-sparse or --without-sparse was given.
  1387. if test "${with_sparse+set}" = set; then
  1388. withval="$with_sparse"
  1389. :
  1390. fi
  1391. # Check whether --with-all or --without-all was given.
  1392. if test "${with_all+set}" = set; then
  1393. withval="$with_all"
  1394. :
  1395. fi
  1396. # Check whether --with-all or --without-all was given.
  1397. if test "${with_all+set}" = set; then
  1398. withval="$with_all"
  1399. :
  1400. fi
  1401. # Check whether --with-unroll or --without-unroll was given.
  1402. if test "${with_unroll+set}" = set; then
  1403. withval="$with_unroll"
  1404. :
  1405. fi
  1406. # Check whether --with-munroll or --without-munroll was given.
  1407. if test "${with_munroll+set}" = set; then
  1408. withval="$with_munroll"
  1409. :
  1410. fi
  1411. # Check whether --with-segmem or --without-segmem was given.
  1412. if test "${with_segmem+set}" = set; then
  1413. withval="$with_segmem"
  1414. :
  1415. fi
  1416. # Check whether --with-float or --without-float was given.
  1417. if test "${with_float+set}" = set; then
  1418. withval="$with_float"
  1419. :
  1420. fi
  1421. # Check whether --with-double or --without-double was given.
  1422. if test "${with_double+set}" = set; then
  1423. withval="$with_double"
  1424. :
  1425. fi
  1426. LIBS="$LIBS -lm"
  1427. cat > conftest.$ac_ext <<EOF
  1428. #line 1569 "configure"
  1429. #include "confdefs.h"
  1430. u_int
  1431. int main() {
  1432. #include <stdio.h>
  1433. #ifdef __STDC__
  1434. #include <stdlib.h>
  1435. #endif
  1436. ; return 0; }
  1437. EOF
  1438. if { (eval echo configure:1579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1439. rm -rf conftest*
  1440. u_int i; i = 1;
  1441. else
  1442. echo "configure: failed program was:" >&5
  1443. cat conftest.$ac_ext >&5
  1444. rm -rf conftest*
  1445. cat >> confdefs.h <<\EOF
  1446. #define U_INT_DEF 1
  1447. EOF
  1448. fi
  1449. rm -f conftest*
  1450. echo 'computing machine epsilon(s)'
  1451. echo $CC -o macheps dmacheps.c
  1452. $CC -o macheps dmacheps.c
  1453. cat >> confdefs.h <<EOF
  1454. #define D_MACHEPS `macheps`
  1455. EOF
  1456. echo $CC -o macheps fmacheps.c
  1457. $CC -o macheps fmacheps.c
  1458. cat >> confdefs.h <<EOF
  1459. #define F_MACHEPS `macheps`
  1460. EOF
  1461. echo computing M_MAX_INT
  1462. echo $CC -o maxint maxint.c
  1463. $CC -o maxint maxint.c
  1464. cat >> confdefs.h <<EOF
  1465. #define M_MAX_INT `maxint`
  1466. EOF
  1467. echo checking char '\\0' vs. float zeros
  1468. cat > conftest.$ac_ext <<EOF
  1469. #line 1614 "configure"
  1470. #include "confdefs.h"
  1471. main() {
  1472. char *cp = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
  1473. double *dp;
  1474. dp = (double *)cp;
  1475. if ( *dp == 0.0 ) printf("yes\n"); }
  1476. EOF
  1477. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1478. egrep "yes" >/dev/null 2>&1; then
  1479. rm -rf conftest*
  1480. cat >> confdefs.h <<\EOF
  1481. #define CHAR0ISDBL0 1
  1482. EOF
  1483. fi
  1484. rm -f conftest*
  1485. for ac_func in bcopy bzero
  1486. do
  1487. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1488. echo "configure:1636: checking for $ac_func" >&5
  1489. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1490. echo $ac_n "(cached) $ac_c" 1>&6
  1491. else
  1492. cat > conftest.$ac_ext <<EOF
  1493. #line 1641 "configure"
  1494. #include "confdefs.h"
  1495. /* System header to define __stub macros and hopefully few prototypes,
  1496. which can conflict with char $ac_func(); below. */
  1497. #include <assert.h>
  1498. /* Override any gcc2 internal prototype to avoid an error. */
  1499. /* We use char because int might match the return type of a gcc2
  1500. builtin and then its argument prototype would still apply. */
  1501. char $ac_func();
  1502. int main() {
  1503. /* The GNU C library defines this for functions which it implements
  1504. to always fail with ENOSYS. Some functions are actually named
  1505. something starting with __ and the normal name is an alias. */
  1506. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1507. choke me
  1508. #else
  1509. $ac_func();
  1510. #endif
  1511. ; return 0; }
  1512. EOF
  1513. if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1514. rm -rf conftest*
  1515. eval "ac_cv_func_$ac_func=yes"
  1516. else
  1517. echo "configure: failed program was:" >&5
  1518. cat conftest.$ac_ext >&5
  1519. rm -rf conftest*
  1520. eval "ac_cv_func_$ac_func=no"
  1521. fi
  1522. rm -f conftest*
  1523. fi
  1524. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1525. echo "$ac_t""yes" 1>&6
  1526. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1527. cat >> confdefs.h <<EOF
  1528. #define $ac_tr_func 1
  1529. EOF
  1530. else
  1531. echo "$ac_t""no" 1>&6
  1532. fi
  1533. done
  1534. cat > conftest.$ac_ext <<EOF
  1535. #line 1689 "configure"
  1536. #include "confdefs.h"
  1537. function prototypes
  1538. int main() {
  1539. ; return 0; }
  1540. EOF
  1541. if { (eval echo configure:1696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1542. rm -rf conftest*
  1543. extern int test (int i, double x);
  1544. else
  1545. echo "configure: failed program was:" >&5
  1546. cat conftest.$ac_ext >&5
  1547. rm -rf conftest*
  1548. cat >> confdefs.h <<\EOF
  1549. #define HAVE_PROTOTYPES 1
  1550. EOF
  1551. fi
  1552. rm -f conftest*
  1553. trap '' 1 2 15
  1554. cat > confcache <<\EOF
  1555. # This file is a shell script that caches the results of configure
  1556. # tests run on this system so they can be shared between configure
  1557. # scripts and configure runs. It is not useful on other systems.
  1558. # If it contains results you don't want to keep, you may remove or edit it.
  1559. #
  1560. # By default, configure uses ./config.cache as the cache file,
  1561. # creating it if it does not exist already. You can give configure
  1562. # the --cache-file=FILE option to use a different cache file; that is
  1563. # what configure does when it calls configure scripts in
  1564. # subdirectories, so they share the cache.
  1565. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1566. # config.status only pays attention to the cache file if you give it the
  1567. # --recheck option to rerun configure.
  1568. #
  1569. EOF
  1570. # The following way of writing the cache mishandles newlines in values,
  1571. # but we know of no workaround that is simple, portable, and efficient.
  1572. # So, don't put newlines in cache variables' values.
  1573. # Ultrix sh set writes to stderr and can't be redirected directly,
  1574. # and sets the high bit in the cache file unless we assign to the vars.
  1575. (set) 2>&1 |
  1576. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1577. *ac_space=\ *)
  1578. # `set' does not quote correctly, so add quotes (double-quote substitution
  1579. # turns \\\\ into \\, and sed turns \\ into \).
  1580. sed -n \
  1581. -e "s/'/'\\\\''/g" \
  1582. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1583. ;;
  1584. *)
  1585. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1586. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1587. ;;
  1588. esac >> confcache
  1589. if cmp -s $cache_file confcache; then
  1590. :
  1591. else
  1592. if test -w $cache_file; then
  1593. echo "updating cache $cache_file"
  1594. cat confcache > $cache_file
  1595. else
  1596. echo "not updating unwritable cache $cache_file"
  1597. fi
  1598. fi
  1599. rm -f confcache
  1600. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1601. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1602. # Let make expand exec_prefix.
  1603. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1604. # Any assignment to VPATH causes Sun make to only execute
  1605. # the first set of double-colon rules, so remove it if not needed.
  1606. # If there is a colon in the path, we need to keep it.
  1607. if test "x$srcdir" = x.; then
  1608. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1609. fi
  1610. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1611. DEFS=-DHAVE_CONFIG_H
  1612. # Without the "./", some shells look in PATH for config.status.
  1613. : ${CONFIG_STATUS=./config.status}
  1614. echo creating $CONFIG_STATUS
  1615. rm -f $CONFIG_STATUS
  1616. cat > $CONFIG_STATUS <<EOF
  1617. #! /bin/sh
  1618. # Generated automatically by configure.
  1619. # Run this file to recreate the current configuration.
  1620. # This directory was configured as follows,
  1621. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1622. #
  1623. # $0 $ac_configure_args
  1624. #
  1625. # Compiler output produced by configure, useful for debugging
  1626. # configure, is in ./config.log if it exists.
  1627. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1628. for ac_option
  1629. do
  1630. case "\$ac_option" in
  1631. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1632. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1633. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1634. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1635. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1636. exit 0 ;;
  1637. -help | --help | --hel | --he | --h)
  1638. echo "\$ac_cs_usage"; exit 0 ;;
  1639. *) echo "\$ac_cs_usage"; exit 1 ;;
  1640. esac
  1641. done
  1642. ac_given_srcdir=$srcdir
  1643. trap 'rm -fr `echo "makefile machine.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1644. EOF
  1645. cat >> $CONFIG_STATUS <<EOF
  1646. # Protect against being on the right side of a sed subst in config.status.
  1647. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1648. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1649. $ac_vpsub
  1650. $extrasub
  1651. s%@SHELL@%$SHELL%g
  1652. s%@CFLAGS@%$CFLAGS%g
  1653. s%@CPPFLAGS@%$CPPFLAGS%g
  1654. s%@CXXFLAGS@%$CXXFLAGS%g
  1655. s%@FFLAGS@%$FFLAGS%g
  1656. s%@DEFS@%$DEFS%g
  1657. s%@LDFLAGS@%$LDFLAGS%g
  1658. s%@LIBS@%$LIBS%g
  1659. s%@exec_prefix@%$exec_prefix%g
  1660. s%@prefix@%$prefix%g
  1661. s%@program_transform_name@%$program_transform_name%g
  1662. s%@bindir@%$bindir%g
  1663. s%@sbindir@%$sbindir%g
  1664. s%@libexecdir@%$libexecdir%g
  1665. s%@datadir@%$datadir%g
  1666. s%@sysconfdir@%$sysconfdir%g
  1667. s%@sharedstatedir@%$sharedstatedir%g
  1668. s%@localstatedir@%$localstatedir%g
  1669. s%@libdir@%$libdir%g
  1670. s%@includedir@%$includedir%g
  1671. s%@oldincludedir@%$oldincludedir%g
  1672. s%@infodir@%$infodir%g
  1673. s%@mandir@%$mandir%g
  1674. s%@PROGS@%$PROGS%g
  1675. s%@CC@%$CC%g
  1676. s%@CPP@%$CPP%g
  1677. s%@RANLIB@%$RANLIB%g
  1678. CEOF
  1679. EOF
  1680. cat >> $CONFIG_STATUS <<\EOF
  1681. # Split the substitutions into bite-sized pieces for seds with
  1682. # small command number limits, like on Digital OSF/1 and HP-UX.
  1683. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1684. ac_file=1 # Number of current file.
  1685. ac_beg=1 # First line for current file.
  1686. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1687. ac_more_lines=:
  1688. ac_sed_cmds=""
  1689. while $ac_more_lines; do
  1690. if test $ac_beg -gt 1; then
  1691. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1692. else
  1693. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1694. fi
  1695. if test ! -s conftest.s$ac_file; then
  1696. ac_more_lines=false
  1697. rm -f conftest.s$ac_file
  1698. else
  1699. if test -z "$ac_sed_cmds"; then
  1700. ac_sed_cmds="sed -f conftest.s$ac_file"
  1701. else
  1702. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1703. fi
  1704. ac_file=`expr $ac_file + 1`
  1705. ac_beg=$ac_end
  1706. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1707. fi
  1708. done
  1709. if test -z "$ac_sed_cmds"; then
  1710. ac_sed_cmds=cat
  1711. fi
  1712. EOF
  1713. cat >> $CONFIG_STATUS <<EOF
  1714. CONFIG_FILES=\${CONFIG_FILES-"makefile"}
  1715. EOF
  1716. cat >> $CONFIG_STATUS <<\EOF
  1717. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1718. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1719. case "$ac_file" in
  1720. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1721. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1722. *) ac_file_in="${ac_file}.in" ;;
  1723. esac
  1724. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1725. # Remove last slash and all that follows it. Not all systems have dirname.
  1726. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1727. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1728. # The file is in a subdirectory.
  1729. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1730. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1731. # A "../" for each directory in $ac_dir_suffix.
  1732. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1733. else
  1734. ac_dir_suffix= ac_dots=
  1735. fi
  1736. case "$ac_given_srcdir" in
  1737. .) srcdir=.
  1738. if test -z "$ac_dots"; then top_srcdir=.
  1739. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1740. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1741. *) # Relative path.
  1742. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1743. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1744. esac
  1745. echo creating "$ac_file"
  1746. rm -f "$ac_file"
  1747. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1748. case "$ac_file" in
  1749. *Makefile*) ac_comsub="1i\\
  1750. # $configure_input" ;;
  1751. *) ac_comsub= ;;
  1752. esac
  1753. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1754. sed -e "$ac_comsub
  1755. s%@configure_input@%$configure_input%g
  1756. s%@srcdir@%$srcdir%g
  1757. s%@top_srcdir@%$top_srcdir%g
  1758. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1759. fi; done
  1760. rm -f conftest.s*
  1761. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1762. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1763. #
  1764. # ac_d sets the value in "#define NAME VALUE" lines.
  1765. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  1766. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  1767. ac_dC='\3'
  1768. ac_dD='%g'
  1769. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1770. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1771. ac_uB='\([ ]\)%\1#\2define\3'
  1772. ac_uC=' '
  1773. ac_uD='\4%g'
  1774. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1775. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1776. ac_eB='$%\1#\2define\3'
  1777. ac_eC=' '
  1778. ac_eD='%g'
  1779. if test "${CONFIG_HEADERS+set}" != set; then
  1780. EOF
  1781. cat >> $CONFIG_STATUS <<EOF
  1782. CONFIG_HEADERS="machine.h"
  1783. EOF
  1784. cat >> $CONFIG_STATUS <<\EOF
  1785. fi
  1786. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1787. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1788. case "$ac_file" in
  1789. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1790. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1791. *) ac_file_in="${ac_file}.in" ;;
  1792. esac
  1793. echo creating $ac_file
  1794. rm -f conftest.frag conftest.in conftest.out
  1795. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1796. cat $ac_file_inputs > conftest.in
  1797. EOF
  1798. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1799. # the proper values into config.h.in to produce config.h. And first:
  1800. # Protect against being on the right side of a sed subst in config.status.
  1801. # Protect against being in an unquoted here document in config.status.
  1802. rm -f conftest.vals
  1803. cat > conftest.hdr <<\EOF
  1804. s/[\\&%]/\\&/g
  1805. s%[\\$`]%\\&%g
  1806. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1807. s%ac_d%ac_u%gp
  1808. s%ac_u%ac_e%gp
  1809. EOF
  1810. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1811. rm -f conftest.hdr
  1812. # This sed command replaces #undef with comments. This is necessary, for
  1813. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1814. # on some systems where configure will not decide to define it.
  1815. cat >> conftest.vals <<\EOF
  1816. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1817. EOF
  1818. # Break up conftest.vals because some shells have a limit on
  1819. # the size of here documents, and old seds have small limits too.
  1820. rm -f conftest.tail
  1821. while :
  1822. do
  1823. ac_lines=`grep -c . conftest.vals`
  1824. # grep -c gives empty output for an empty file on some AIX systems.
  1825. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1826. # Write a limited-size here document to conftest.frag.
  1827. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1828. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1829. echo 'CEOF
  1830. sed -f conftest.frag conftest.in > conftest.out
  1831. rm -f conftest.in
  1832. mv conftest.out conftest.in
  1833. ' >> $CONFIG_STATUS
  1834. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1835. rm -f conftest.vals
  1836. mv conftest.tail conftest.vals
  1837. done
  1838. rm -f conftest.vals
  1839. cat >> $CONFIG_STATUS <<\EOF
  1840. rm -f conftest.frag conftest.h
  1841. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  1842. cat conftest.in >> conftest.h
  1843. rm -f conftest.in
  1844. if cmp -s $ac_file conftest.h 2>/dev/null; then
  1845. echo "$ac_file is unchanged"
  1846. rm -f conftest.h
  1847. else
  1848. # Remove last slash and all that follows it. Not all systems have dirname.
  1849. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1850. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1851. # The file is in a subdirectory.
  1852. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1853. fi
  1854. rm -f $ac_file
  1855. mv conftest.h $ac_file
  1856. fi
  1857. fi; done
  1858. EOF
  1859. cat >> $CONFIG_STATUS <<EOF
  1860. EOF
  1861. cat >> $CONFIG_STATUS <<\EOF
  1862. exit 0
  1863. EOF
  1864. chmod +x $CONFIG_STATUS
  1865. rm -fr confdefs* $ac_clean_files
  1866. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1867. echo "Extensions to basic version: use configure --with-opt1 --with-opt2"
  1868. echo " Option:"
  1869. echo " --with-complex incorporate complex functions"
  1870. echo " --with-sparse incorporate sparse matrix functions"
  1871. echo " --with-all both of the above"
  1872. echo " --with-unroll unroll low level loops on vectors"
  1873. echo " --with-munroll unroll low level loops on matrices"
  1874. echo " --with-float single precision"
  1875. echo " --with-double double precision (default)"
  1876. echo "Re-run configure with these options if you want them"
  1877. # configure.in copyright (C) Brook Milligan and David Stewart, 1993, 2002