configure 87 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by Autoconf 2.52.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. # Avoid depending upon Character Ranges.
  10. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13. as_cr_digits='0123456789'
  14. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15. # Sed expression to map a string onto a valid variable name.
  16. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  17. # Sed expression to map a string onto a valid CPP name.
  18. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  19. # Be Bourne compatible
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21. emulate sh
  22. NULLCMD=:
  23. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  24. set -o posix
  25. fi
  26. # Name of the executable.
  27. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  28. if expr a : '\(a\)' >/dev/null 2>&1; then
  29. as_expr=expr
  30. else
  31. as_expr=false
  32. fi
  33. rm -f conf$$ conf$$.exe conf$$.file
  34. echo >conf$$.file
  35. if ln -s conf$$.file conf$$ 2>/dev/null; then
  36. # We could just check for DJGPP; but this test a) works b) is more generic
  37. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  38. if test -f conf$$.exe; then
  39. # Don't use ln at all; we don't have any links
  40. as_ln_s='cp -p'
  41. else
  42. as_ln_s='ln -s'
  43. fi
  44. elif ln conf$$.file conf$$ 2>/dev/null; then
  45. as_ln_s=ln
  46. else
  47. as_ln_s='cp -p'
  48. fi
  49. rm -f conf$$ conf$$.exe conf$$.file
  50. as_executable_p="test -f"
  51. # Support unset when possible.
  52. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  53. as_unset=unset
  54. else
  55. as_unset=false
  56. fi
  57. # NLS nuisances.
  58. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  59. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  60. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  61. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  62. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  63. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  64. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  65. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  66. # IFS
  67. # We need space, tab and new line, in precisely that order.
  68. as_nl='
  69. '
  70. IFS=" $as_nl"
  71. # CDPATH.
  72. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  73. # Name of the host.
  74. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  75. # so uname gets run too.
  76. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  77. exec 6>&1
  78. #
  79. # Initializations.
  80. #
  81. ac_default_prefix=/usr/local
  82. cross_compiling=no
  83. subdirs=
  84. MFLAGS= MAKEFLAGS=
  85. SHELL=${CONFIG_SHELL-/bin/sh}
  86. # Maximum number of lines to put in a shell here document.
  87. # This variable seems obsolete. It should probably be removed, and
  88. # only ac_max_sed_lines should be used.
  89. : ${ac_max_here_lines=38}
  90. # Initialize some variables set by options.
  91. ac_init_help=
  92. ac_init_version=false
  93. # The variables have the same names as the options, with
  94. # dashes changed to underlines.
  95. cache_file=/dev/null
  96. exec_prefix=NONE
  97. no_create=
  98. no_recursion=
  99. prefix=NONE
  100. program_prefix=NONE
  101. program_suffix=NONE
  102. program_transform_name=s,x,x,
  103. silent=
  104. site=
  105. srcdir=
  106. verbose=
  107. x_includes=NONE
  108. x_libraries=NONE
  109. # Installation directory options.
  110. # These are left unexpanded so users can "make install exec_prefix=/foo"
  111. # and all the variables that are supposed to be based on exec_prefix
  112. # by default will actually change.
  113. # Use braces instead of parens because sh, perl, etc. also accept them.
  114. bindir='${exec_prefix}/bin'
  115. sbindir='${exec_prefix}/sbin'
  116. libexecdir='${exec_prefix}/libexec'
  117. datadir='${prefix}/share'
  118. sysconfdir='${prefix}/etc'
  119. sharedstatedir='${prefix}/com'
  120. localstatedir='${prefix}/var'
  121. libdir='${exec_prefix}/lib'
  122. includedir='${prefix}/include'
  123. oldincludedir='/usr/include'
  124. infodir='${prefix}/info'
  125. mandir='${prefix}/man'
  126. # Identity of this package.
  127. PACKAGE_NAME=
  128. PACKAGE_TARNAME=
  129. PACKAGE_VERSION=
  130. PACKAGE_STRING=
  131. PACKAGE_BUGREPORT=
  132. ac_prev=
  133. for ac_option
  134. do
  135. # If the previous option needs an argument, assign it.
  136. if test -n "$ac_prev"; then
  137. eval "$ac_prev=\$ac_option"
  138. ac_prev=
  139. continue
  140. fi
  141. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  142. # Accept the important Cygnus configure options, so we can diagnose typos.
  143. case $ac_option in
  144. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  145. ac_prev=bindir ;;
  146. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  147. bindir=$ac_optarg ;;
  148. -build | --build | --buil | --bui | --bu)
  149. ac_prev=build_alias ;;
  150. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  151. build_alias=$ac_optarg ;;
  152. -cache-file | --cache-file | --cache-fil | --cache-fi \
  153. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  154. ac_prev=cache_file ;;
  155. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  156. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  157. cache_file=$ac_optarg ;;
  158. --config-cache | -C)
  159. cache_file=config.cache ;;
  160. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  161. ac_prev=datadir ;;
  162. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  163. | --da=*)
  164. datadir=$ac_optarg ;;
  165. -disable-* | --disable-*)
  166. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  167. # Reject names that are not valid shell variable names.
  168. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  169. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  170. { (exit 1); exit 1; }; }
  171. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  172. eval "enable_$ac_feature=no" ;;
  173. -enable-* | --enable-*)
  174. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  175. # Reject names that are not valid shell variable names.
  176. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  177. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  178. { (exit 1); exit 1; }; }
  179. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  180. case $ac_option in
  181. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  182. *) ac_optarg=yes ;;
  183. esac
  184. eval "enable_$ac_feature='$ac_optarg'" ;;
  185. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  186. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  187. | --exec | --exe | --ex)
  188. ac_prev=exec_prefix ;;
  189. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  190. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  191. | --exec=* | --exe=* | --ex=*)
  192. exec_prefix=$ac_optarg ;;
  193. -gas | --gas | --ga | --g)
  194. # Obsolete; use --with-gas.
  195. with_gas=yes ;;
  196. -help | --help | --hel | --he | -h)
  197. ac_init_help=long ;;
  198. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  199. ac_init_help=recursive ;;
  200. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  201. ac_init_help=short ;;
  202. -host | --host | --hos | --ho)
  203. ac_prev=host_alias ;;
  204. -host=* | --host=* | --hos=* | --ho=*)
  205. host_alias=$ac_optarg ;;
  206. -includedir | --includedir | --includedi | --included | --include \
  207. | --includ | --inclu | --incl | --inc)
  208. ac_prev=includedir ;;
  209. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  210. | --includ=* | --inclu=* | --incl=* | --inc=*)
  211. includedir=$ac_optarg ;;
  212. -infodir | --infodir | --infodi | --infod | --info | --inf)
  213. ac_prev=infodir ;;
  214. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  215. infodir=$ac_optarg ;;
  216. -libdir | --libdir | --libdi | --libd)
  217. ac_prev=libdir ;;
  218. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  219. libdir=$ac_optarg ;;
  220. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  221. | --libexe | --libex | --libe)
  222. ac_prev=libexecdir ;;
  223. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  224. | --libexe=* | --libex=* | --libe=*)
  225. libexecdir=$ac_optarg ;;
  226. -localstatedir | --localstatedir | --localstatedi | --localstated \
  227. | --localstate | --localstat | --localsta | --localst \
  228. | --locals | --local | --loca | --loc | --lo)
  229. ac_prev=localstatedir ;;
  230. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  231. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  232. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  233. localstatedir=$ac_optarg ;;
  234. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  235. ac_prev=mandir ;;
  236. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  237. mandir=$ac_optarg ;;
  238. -nfp | --nfp | --nf)
  239. # Obsolete; use --without-fp.
  240. with_fp=no ;;
  241. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  242. | --no-cr | --no-c)
  243. no_create=yes ;;
  244. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  245. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  246. no_recursion=yes ;;
  247. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  248. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  249. | --oldin | --oldi | --old | --ol | --o)
  250. ac_prev=oldincludedir ;;
  251. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  252. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  253. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  254. oldincludedir=$ac_optarg ;;
  255. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  256. ac_prev=prefix ;;
  257. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  258. prefix=$ac_optarg ;;
  259. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  260. | --program-pre | --program-pr | --program-p)
  261. ac_prev=program_prefix ;;
  262. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  263. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  264. program_prefix=$ac_optarg ;;
  265. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  266. | --program-suf | --program-su | --program-s)
  267. ac_prev=program_suffix ;;
  268. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  269. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  270. program_suffix=$ac_optarg ;;
  271. -program-transform-name | --program-transform-name \
  272. | --program-transform-nam | --program-transform-na \
  273. | --program-transform-n | --program-transform- \
  274. | --program-transform | --program-transfor \
  275. | --program-transfo | --program-transf \
  276. | --program-trans | --program-tran \
  277. | --progr-tra | --program-tr | --program-t)
  278. ac_prev=program_transform_name ;;
  279. -program-transform-name=* | --program-transform-name=* \
  280. | --program-transform-nam=* | --program-transform-na=* \
  281. | --program-transform-n=* | --program-transform-=* \
  282. | --program-transform=* | --program-transfor=* \
  283. | --program-transfo=* | --program-transf=* \
  284. | --program-trans=* | --program-tran=* \
  285. | --progr-tra=* | --program-tr=* | --program-t=*)
  286. program_transform_name=$ac_optarg ;;
  287. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  288. | -silent | --silent | --silen | --sile | --sil)
  289. silent=yes ;;
  290. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  291. ac_prev=sbindir ;;
  292. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  293. | --sbi=* | --sb=*)
  294. sbindir=$ac_optarg ;;
  295. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  296. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  297. | --sharedst | --shareds | --shared | --share | --shar \
  298. | --sha | --sh)
  299. ac_prev=sharedstatedir ;;
  300. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  301. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  302. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  303. | --sha=* | --sh=*)
  304. sharedstatedir=$ac_optarg ;;
  305. -site | --site | --sit)
  306. ac_prev=site ;;
  307. -site=* | --site=* | --sit=*)
  308. site=$ac_optarg ;;
  309. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  310. ac_prev=srcdir ;;
  311. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  312. srcdir=$ac_optarg ;;
  313. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  314. | --syscon | --sysco | --sysc | --sys | --sy)
  315. ac_prev=sysconfdir ;;
  316. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  317. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  318. sysconfdir=$ac_optarg ;;
  319. -target | --target | --targe | --targ | --tar | --ta | --t)
  320. ac_prev=target_alias ;;
  321. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  322. target_alias=$ac_optarg ;;
  323. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  324. verbose=yes ;;
  325. -version | --version | --versio | --versi | --vers | -V)
  326. ac_init_version=: ;;
  327. -with-* | --with-*)
  328. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  329. # Reject names that are not valid shell variable names.
  330. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  331. { echo "$as_me: error: invalid package name: $ac_package" >&2
  332. { (exit 1); exit 1; }; }
  333. ac_package=`echo $ac_package| sed 's/-/_/g'`
  334. case $ac_option in
  335. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  336. *) ac_optarg=yes ;;
  337. esac
  338. eval "with_$ac_package='$ac_optarg'" ;;
  339. -without-* | --without-*)
  340. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  341. # Reject names that are not valid shell variable names.
  342. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  343. { echo "$as_me: error: invalid package name: $ac_package" >&2
  344. { (exit 1); exit 1; }; }
  345. ac_package=`echo $ac_package | sed 's/-/_/g'`
  346. eval "with_$ac_package=no" ;;
  347. --x)
  348. # Obsolete; use --with-x.
  349. with_x=yes ;;
  350. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  351. | --x-incl | --x-inc | --x-in | --x-i)
  352. ac_prev=x_includes ;;
  353. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  354. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  355. x_includes=$ac_optarg ;;
  356. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  357. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  358. ac_prev=x_libraries ;;
  359. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  360. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  361. x_libraries=$ac_optarg ;;
  362. -*) { echo "$as_me: error: unrecognized option: $ac_option
  363. Try \`$0 --help' for more information." >&2
  364. { (exit 1); exit 1; }; }
  365. ;;
  366. *=*)
  367. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  368. # Reject names that are not valid shell variable names.
  369. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  370. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  371. { (exit 1); exit 1; }; }
  372. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  373. eval "$ac_envvar='$ac_optarg'"
  374. export $ac_envvar ;;
  375. *)
  376. # FIXME: should be removed in autoconf 3.0.
  377. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  378. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  379. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  380. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  381. ;;
  382. esac
  383. done
  384. if test -n "$ac_prev"; then
  385. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  386. { echo "$as_me: error: missing argument to $ac_option" >&2
  387. { (exit 1); exit 1; }; }
  388. fi
  389. # Be sure to have absolute paths.
  390. for ac_var in exec_prefix prefix
  391. do
  392. eval ac_val=$`echo $ac_var`
  393. case $ac_val in
  394. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  395. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  396. { (exit 1); exit 1; }; };;
  397. esac
  398. done
  399. # Be sure to have absolute paths.
  400. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  401. localstatedir libdir includedir oldincludedir infodir mandir
  402. do
  403. eval ac_val=$`echo $ac_var`
  404. case $ac_val in
  405. [\\/$]* | ?:[\\/]* ) ;;
  406. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  407. { (exit 1); exit 1; }; };;
  408. esac
  409. done
  410. # There might be people who depend on the old broken behavior: `$host'
  411. # used to hold the argument of --host etc.
  412. build=$build_alias
  413. host=$host_alias
  414. target=$target_alias
  415. # FIXME: should be removed in autoconf 3.0.
  416. if test "x$host_alias" != x; then
  417. if test "x$build_alias" = x; then
  418. cross_compiling=maybe
  419. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  420. If a cross compiler is detected then cross compile mode will be used." >&2
  421. elif test "x$build_alias" != "x$host_alias"; then
  422. cross_compiling=yes
  423. fi
  424. fi
  425. ac_tool_prefix=
  426. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  427. test "$silent" = yes && exec 6>/dev/null
  428. # Find the source files, if location was not specified.
  429. if test -z "$srcdir"; then
  430. ac_srcdir_defaulted=yes
  431. # Try the directory containing this script, then its parent.
  432. ac_prog=$0
  433. ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
  434. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  435. srcdir=$ac_confdir
  436. if test ! -r $srcdir/$ac_unique_file; then
  437. srcdir=..
  438. fi
  439. else
  440. ac_srcdir_defaulted=no
  441. fi
  442. if test ! -r $srcdir/$ac_unique_file; then
  443. if test "$ac_srcdir_defaulted" = yes; then
  444. { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
  445. { (exit 1); exit 1; }; }
  446. else
  447. { echo "$as_me: error: cannot find sources in $srcdir" >&2
  448. { (exit 1); exit 1; }; }
  449. fi
  450. fi
  451. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  452. ac_env_build_alias_set=${build_alias+set}
  453. ac_env_build_alias_value=$build_alias
  454. ac_cv_env_build_alias_set=${build_alias+set}
  455. ac_cv_env_build_alias_value=$build_alias
  456. ac_env_host_alias_set=${host_alias+set}
  457. ac_env_host_alias_value=$host_alias
  458. ac_cv_env_host_alias_set=${host_alias+set}
  459. ac_cv_env_host_alias_value=$host_alias
  460. ac_env_target_alias_set=${target_alias+set}
  461. ac_env_target_alias_value=$target_alias
  462. ac_cv_env_target_alias_set=${target_alias+set}
  463. ac_cv_env_target_alias_value=$target_alias
  464. ac_env_CC_set=${CC+set}
  465. ac_env_CC_value=$CC
  466. ac_cv_env_CC_set=${CC+set}
  467. ac_cv_env_CC_value=$CC
  468. ac_env_CFLAGS_set=${CFLAGS+set}
  469. ac_env_CFLAGS_value=$CFLAGS
  470. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  471. ac_cv_env_CFLAGS_value=$CFLAGS
  472. ac_env_LDFLAGS_set=${LDFLAGS+set}
  473. ac_env_LDFLAGS_value=$LDFLAGS
  474. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  475. ac_cv_env_LDFLAGS_value=$LDFLAGS
  476. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  477. ac_env_CPPFLAGS_value=$CPPFLAGS
  478. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  479. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  480. ac_env_CXX_set=${CXX+set}
  481. ac_env_CXX_value=$CXX
  482. ac_cv_env_CXX_set=${CXX+set}
  483. ac_cv_env_CXX_value=$CXX
  484. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  485. ac_env_CXXFLAGS_value=$CXXFLAGS
  486. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  487. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  488. #
  489. # Report the --help message.
  490. #
  491. if test "$ac_init_help" = "long"; then
  492. # Omit some internal or obsolete options to make the list less imposing.
  493. # This message is too long to be a string in the A/UX 3.1 sh.
  494. cat <<EOF
  495. \`configure' configures this package to adapt to many kinds of systems.
  496. Usage: $0 [OPTION]... [VAR=VALUE]...
  497. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  498. VAR=VALUE. See below for descriptions of some of the useful variables.
  499. Defaults for the options are specified in brackets.
  500. Configuration:
  501. -h, --help display this help and exit
  502. --help=short display options specific to this package
  503. --help=recursive display the short help of all the included packages
  504. -V, --version display version information and exit
  505. -q, --quiet, --silent do not print \`checking...' messages
  506. --cache-file=FILE cache test results in FILE [disabled]
  507. -C, --config-cache alias for \`--cache-file=config.cache'
  508. -n, --no-create do not create output files
  509. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  510. EOF
  511. cat <<EOF
  512. Installation directories:
  513. --prefix=PREFIX install architecture-independent files in PREFIX
  514. [$ac_default_prefix]
  515. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  516. [PREFIX]
  517. By default, \`make install' will install all the files in
  518. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  519. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  520. for instance \`--prefix=\$HOME'.
  521. For better control, use the options below.
  522. Fine tuning of the installation directories:
  523. --bindir=DIR user executables [EPREFIX/bin]
  524. --sbindir=DIR system admin executables [EPREFIX/sbin]
  525. --libexecdir=DIR program executables [EPREFIX/libexec]
  526. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  527. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  528. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  529. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  530. --libdir=DIR object code libraries [EPREFIX/lib]
  531. --includedir=DIR C header files [PREFIX/include]
  532. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  533. --infodir=DIR info documentation [PREFIX/info]
  534. --mandir=DIR man documentation [PREFIX/man]
  535. EOF
  536. cat <<\EOF
  537. EOF
  538. fi
  539. if test -n "$ac_init_help"; then
  540. cat <<\EOF
  541. Some influential environment variables:
  542. CC C compiler command
  543. CFLAGS C compiler flags
  544. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  545. nonstandard directory <lib dir>
  546. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  547. headers in a nonstandard directory <include dir>
  548. CXX C++ compiler command
  549. CXXFLAGS C++ compiler flags
  550. Use these variables to override the choices made by `configure' or to help
  551. it to find libraries and programs with nonstandard names/locations.
  552. EOF
  553. fi
  554. if test "$ac_init_help" = "recursive"; then
  555. # If there are subdirs, report their specific --help.
  556. ac_popdir=`pwd`
  557. for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
  558. cd $ac_subdir
  559. # A "../" for each directory in /$ac_subdir.
  560. ac_dots=`echo $ac_subdir |
  561. sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
  562. case $srcdir in
  563. .) # No --srcdir option. We are building in place.
  564. ac_sub_srcdir=$srcdir ;;
  565. [\\/]* | ?:[\\/]* ) # Absolute path.
  566. ac_sub_srcdir=$srcdir/$ac_subdir ;;
  567. *) # Relative path.
  568. ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
  569. esac
  570. # Check for guested configure; otherwise get Cygnus style configure.
  571. if test -f $ac_sub_srcdir/configure.gnu; then
  572. echo
  573. $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
  574. elif test -f $ac_sub_srcdir/configure; then
  575. echo
  576. $SHELL $ac_sub_srcdir/configure --help=recursive
  577. elif test -f $ac_sub_srcdir/configure.ac ||
  578. test -f $ac_sub_srcdir/configure.in; then
  579. echo
  580. $ac_configure --help
  581. else
  582. echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
  583. fi
  584. cd $ac_popdir
  585. done
  586. fi
  587. test -n "$ac_init_help" && exit 0
  588. if $ac_init_version; then
  589. cat <<\EOF
  590. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  591. Free Software Foundation, Inc.
  592. This configure script is free software; the Free Software Foundation
  593. gives unlimited permission to copy, distribute and modify it.
  594. EOF
  595. exit 0
  596. fi
  597. exec 5>config.log
  598. cat >&5 <<EOF
  599. This file contains any messages produced by compilers while
  600. running configure, to aid debugging if configure makes a mistake.
  601. It was created by $as_me, which was
  602. generated by GNU Autoconf 2.52. Invocation command line was
  603. $ $0 $@
  604. EOF
  605. {
  606. cat <<_ASUNAME
  607. ## ---------- ##
  608. ## Platform. ##
  609. ## ---------- ##
  610. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  611. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  612. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  613. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  614. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  615. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  616. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  617. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  618. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  619. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  620. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  621. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  622. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  623. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  624. PATH = $PATH
  625. _ASUNAME
  626. } >&5
  627. cat >&5 <<EOF
  628. ## ------------ ##
  629. ## Core tests. ##
  630. ## ------------ ##
  631. EOF
  632. # Keep a trace of the command line.
  633. # Strip out --no-create and --no-recursion so they do not pile up.
  634. # Also quote any args containing shell meta-characters.
  635. ac_configure_args=
  636. ac_sep=
  637. for ac_arg
  638. do
  639. case $ac_arg in
  640. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  641. | --no-cr | --no-c) ;;
  642. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  643. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  644. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  645. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  646. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  647. ac_sep=" " ;;
  648. *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
  649. ac_sep=" " ;;
  650. esac
  651. # Get rid of the leading space.
  652. done
  653. # When interrupted or exit'd, cleanup temporary files, and complete
  654. # config.log. We remove comments because anyway the quotes in there
  655. # would cause problems or look ugly.
  656. trap 'exit_status=$?
  657. # Save into config.log some information that might help in debugging.
  658. echo >&5
  659. echo "## ----------------- ##" >&5
  660. echo "## Cache variables. ##" >&5
  661. echo "## ----------------- ##" >&5
  662. echo >&5
  663. # The following way of writing the cache mishandles newlines in values,
  664. {
  665. (set) 2>&1 |
  666. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  667. *ac_space=\ *)
  668. sed -n \
  669. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  670. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  671. ;;
  672. *)
  673. sed -n \
  674. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  675. ;;
  676. esac;
  677. } >&5
  678. sed "/^$/d" confdefs.h >conftest.log
  679. if test -s conftest.log; then
  680. echo >&5
  681. echo "## ------------ ##" >&5
  682. echo "## confdefs.h. ##" >&5
  683. echo "## ------------ ##" >&5
  684. echo >&5
  685. cat conftest.log >&5
  686. fi
  687. (echo; echo) >&5
  688. test "$ac_signal" != 0 &&
  689. echo "$as_me: caught signal $ac_signal" >&5
  690. echo "$as_me: exit $exit_status" >&5
  691. rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
  692. exit $exit_status
  693. ' 0
  694. for ac_signal in 1 2 13 15; do
  695. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  696. done
  697. ac_signal=0
  698. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  699. rm -rf conftest* confdefs.h
  700. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  701. echo >confdefs.h
  702. # Let the site file select an alternate cache file if it wants to.
  703. # Prefer explicitly selected file to automatically selected ones.
  704. if test -z "$CONFIG_SITE"; then
  705. if test "x$prefix" != xNONE; then
  706. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  707. else
  708. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  709. fi
  710. fi
  711. for ac_site_file in $CONFIG_SITE; do
  712. if test -r "$ac_site_file"; then
  713. { echo "$as_me:822: loading site script $ac_site_file" >&5
  714. echo "$as_me: loading site script $ac_site_file" >&6;}
  715. cat "$ac_site_file" >&5
  716. . "$ac_site_file"
  717. fi
  718. done
  719. if test -r "$cache_file"; then
  720. # Some versions of bash will fail to source /dev/null (special
  721. # files actually), so we avoid doing that.
  722. if test -f "$cache_file"; then
  723. { echo "$as_me:833: loading cache $cache_file" >&5
  724. echo "$as_me: loading cache $cache_file" >&6;}
  725. case $cache_file in
  726. [\\/]* | ?:[\\/]* ) . $cache_file;;
  727. *) . ./$cache_file;;
  728. esac
  729. fi
  730. else
  731. { echo "$as_me:841: creating cache $cache_file" >&5
  732. echo "$as_me: creating cache $cache_file" >&6;}
  733. >$cache_file
  734. fi
  735. # Check that the precious variables saved in the cache have kept the same
  736. # value.
  737. ac_cache_corrupted=false
  738. for ac_var in `(set) 2>&1 |
  739. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  740. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  741. eval ac_new_set=\$ac_env_${ac_var}_set
  742. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  743. eval ac_new_val="\$ac_env_${ac_var}_value"
  744. case $ac_old_set,$ac_new_set in
  745. set,)
  746. { echo "$as_me:857: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  747. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  748. ac_cache_corrupted=: ;;
  749. ,set)
  750. { echo "$as_me:861: error: \`$ac_var' was not set in the previous run" >&5
  751. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  752. ac_cache_corrupted=: ;;
  753. ,);;
  754. *)
  755. if test "x$ac_old_val" != "x$ac_new_val"; then
  756. { echo "$as_me:867: error: \`$ac_var' has changed since the previous run:" >&5
  757. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  758. { echo "$as_me:869: former value: $ac_old_val" >&5
  759. echo "$as_me: former value: $ac_old_val" >&2;}
  760. { echo "$as_me:871: current value: $ac_new_val" >&5
  761. echo "$as_me: current value: $ac_new_val" >&2;}
  762. ac_cache_corrupted=:
  763. fi;;
  764. esac
  765. # Pass precious variables to config.status. It doesn't matter if
  766. # we pass some twice (in addition to the command line arguments).
  767. if test "$ac_new_set" = set; then
  768. case $ac_new_val in
  769. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  770. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
  771. ac_configure_args="$ac_configure_args '$ac_arg'"
  772. ;;
  773. *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
  774. ;;
  775. esac
  776. fi
  777. done
  778. if $ac_cache_corrupted; then
  779. { echo "$as_me:890: error: changes in the environment can compromise the build" >&5
  780. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  781. { { echo "$as_me:892: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  782. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  783. { (exit 1); exit 1; }; }
  784. fi
  785. ac_ext=c
  786. ac_cpp='$CPP $CPPFLAGS'
  787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  790. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  791. *c*,-n*) ECHO_N= ECHO_C='
  792. ' ECHO_T=' ' ;;
  793. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  794. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  795. esac
  796. echo "#! $SHELL" >conftest.sh
  797. echo "exit 0" >>conftest.sh
  798. chmod +x conftest.sh
  799. if { (echo "$as_me:912: PATH=\".;.\"; conftest.sh") >&5
  800. (PATH=".;."; conftest.sh) 2>&5
  801. ac_status=$?
  802. echo "$as_me:915: \$? = $ac_status" >&5
  803. (exit $ac_status); }; then
  804. ac_path_separator=';'
  805. else
  806. ac_path_separator=:
  807. fi
  808. PATH_SEPARATOR="$ac_path_separator"
  809. rm -f conftest.sh
  810. ac_config_headers="$ac_config_headers Source/cmConfigure.h"
  811. CMAKE_CONFIG_DIR=`pwd`
  812. #
  813. # check for some programs we use
  814. #
  815. ac_ext=c
  816. ac_cpp='$CPP $CPPFLAGS'
  817. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  818. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  819. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  820. if test -n "$ac_tool_prefix"; then
  821. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  822. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  823. echo "$as_me:939: checking for $ac_word" >&5
  824. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  825. if test "${ac_cv_prog_CC+set}" = set; then
  826. echo $ECHO_N "(cached) $ECHO_C" >&6
  827. else
  828. if test -n "$CC"; then
  829. ac_cv_prog_CC="$CC" # Let the user override the test.
  830. else
  831. ac_save_IFS=$IFS; IFS=$ac_path_separator
  832. ac_dummy="$PATH"
  833. for ac_dir in $ac_dummy; do
  834. IFS=$ac_save_IFS
  835. test -z "$ac_dir" && ac_dir=.
  836. $as_executable_p "$ac_dir/$ac_word" || continue
  837. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  838. echo "$as_me:954: found $ac_dir/$ac_word" >&5
  839. break
  840. done
  841. fi
  842. fi
  843. CC=$ac_cv_prog_CC
  844. if test -n "$CC"; then
  845. echo "$as_me:962: result: $CC" >&5
  846. echo "${ECHO_T}$CC" >&6
  847. else
  848. echo "$as_me:965: result: no" >&5
  849. echo "${ECHO_T}no" >&6
  850. fi
  851. fi
  852. if test -z "$ac_cv_prog_CC"; then
  853. ac_ct_CC=$CC
  854. # Extract the first word of "gcc", so it can be a program name with args.
  855. set dummy gcc; ac_word=$2
  856. echo "$as_me:974: checking for $ac_word" >&5
  857. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  858. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  859. echo $ECHO_N "(cached) $ECHO_C" >&6
  860. else
  861. if test -n "$ac_ct_CC"; then
  862. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  863. else
  864. ac_save_IFS=$IFS; IFS=$ac_path_separator
  865. ac_dummy="$PATH"
  866. for ac_dir in $ac_dummy; do
  867. IFS=$ac_save_IFS
  868. test -z "$ac_dir" && ac_dir=.
  869. $as_executable_p "$ac_dir/$ac_word" || continue
  870. ac_cv_prog_ac_ct_CC="gcc"
  871. echo "$as_me:989: found $ac_dir/$ac_word" >&5
  872. break
  873. done
  874. fi
  875. fi
  876. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  877. if test -n "$ac_ct_CC"; then
  878. echo "$as_me:997: result: $ac_ct_CC" >&5
  879. echo "${ECHO_T}$ac_ct_CC" >&6
  880. else
  881. echo "$as_me:1000: result: no" >&5
  882. echo "${ECHO_T}no" >&6
  883. fi
  884. CC=$ac_ct_CC
  885. else
  886. CC="$ac_cv_prog_CC"
  887. fi
  888. if test -z "$CC"; then
  889. if test -n "$ac_tool_prefix"; then
  890. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  891. set dummy ${ac_tool_prefix}cc; ac_word=$2
  892. echo "$as_me:1013: checking for $ac_word" >&5
  893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  894. if test "${ac_cv_prog_CC+set}" = set; then
  895. echo $ECHO_N "(cached) $ECHO_C" >&6
  896. else
  897. if test -n "$CC"; then
  898. ac_cv_prog_CC="$CC" # Let the user override the test.
  899. else
  900. ac_save_IFS=$IFS; IFS=$ac_path_separator
  901. ac_dummy="$PATH"
  902. for ac_dir in $ac_dummy; do
  903. IFS=$ac_save_IFS
  904. test -z "$ac_dir" && ac_dir=.
  905. $as_executable_p "$ac_dir/$ac_word" || continue
  906. ac_cv_prog_CC="${ac_tool_prefix}cc"
  907. echo "$as_me:1028: found $ac_dir/$ac_word" >&5
  908. break
  909. done
  910. fi
  911. fi
  912. CC=$ac_cv_prog_CC
  913. if test -n "$CC"; then
  914. echo "$as_me:1036: result: $CC" >&5
  915. echo "${ECHO_T}$CC" >&6
  916. else
  917. echo "$as_me:1039: result: no" >&5
  918. echo "${ECHO_T}no" >&6
  919. fi
  920. fi
  921. if test -z "$ac_cv_prog_CC"; then
  922. ac_ct_CC=$CC
  923. # Extract the first word of "cc", so it can be a program name with args.
  924. set dummy cc; ac_word=$2
  925. echo "$as_me:1048: checking for $ac_word" >&5
  926. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  927. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  928. echo $ECHO_N "(cached) $ECHO_C" >&6
  929. else
  930. if test -n "$ac_ct_CC"; then
  931. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  932. else
  933. ac_save_IFS=$IFS; IFS=$ac_path_separator
  934. ac_dummy="$PATH"
  935. for ac_dir in $ac_dummy; do
  936. IFS=$ac_save_IFS
  937. test -z "$ac_dir" && ac_dir=.
  938. $as_executable_p "$ac_dir/$ac_word" || continue
  939. ac_cv_prog_ac_ct_CC="cc"
  940. echo "$as_me:1063: found $ac_dir/$ac_word" >&5
  941. break
  942. done
  943. fi
  944. fi
  945. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  946. if test -n "$ac_ct_CC"; then
  947. echo "$as_me:1071: result: $ac_ct_CC" >&5
  948. echo "${ECHO_T}$ac_ct_CC" >&6
  949. else
  950. echo "$as_me:1074: result: no" >&5
  951. echo "${ECHO_T}no" >&6
  952. fi
  953. CC=$ac_ct_CC
  954. else
  955. CC="$ac_cv_prog_CC"
  956. fi
  957. fi
  958. if test -z "$CC"; then
  959. # Extract the first word of "cc", so it can be a program name with args.
  960. set dummy cc; ac_word=$2
  961. echo "$as_me:1087: checking for $ac_word" >&5
  962. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  963. if test "${ac_cv_prog_CC+set}" = set; then
  964. echo $ECHO_N "(cached) $ECHO_C" >&6
  965. else
  966. if test -n "$CC"; then
  967. ac_cv_prog_CC="$CC" # Let the user override the test.
  968. else
  969. ac_prog_rejected=no
  970. ac_save_IFS=$IFS; IFS=$ac_path_separator
  971. ac_dummy="$PATH"
  972. for ac_dir in $ac_dummy; do
  973. IFS=$ac_save_IFS
  974. test -z "$ac_dir" && ac_dir=.
  975. $as_executable_p "$ac_dir/$ac_word" || continue
  976. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  977. ac_prog_rejected=yes
  978. continue
  979. fi
  980. ac_cv_prog_CC="cc"
  981. echo "$as_me:1107: found $ac_dir/$ac_word" >&5
  982. break
  983. done
  984. if test $ac_prog_rejected = yes; then
  985. # We found a bogon in the path, so make sure we never use it.
  986. set dummy $ac_cv_prog_CC
  987. shift
  988. if test $# != 0; then
  989. # We chose a different compiler from the bogus one.
  990. # However, it has the same basename, so the bogon will be chosen
  991. # first if we set CC to just the basename; use the full file name.
  992. shift
  993. set dummy "$ac_dir/$ac_word" ${1+"$@"}
  994. shift
  995. ac_cv_prog_CC="$@"
  996. fi
  997. fi
  998. fi
  999. fi
  1000. CC=$ac_cv_prog_CC
  1001. if test -n "$CC"; then
  1002. echo "$as_me:1129: result: $CC" >&5
  1003. echo "${ECHO_T}$CC" >&6
  1004. else
  1005. echo "$as_me:1132: result: no" >&5
  1006. echo "${ECHO_T}no" >&6
  1007. fi
  1008. fi
  1009. if test -z "$CC"; then
  1010. if test -n "$ac_tool_prefix"; then
  1011. for ac_prog in cl
  1012. do
  1013. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1014. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1015. echo "$as_me:1143: checking for $ac_word" >&5
  1016. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1017. if test "${ac_cv_prog_CC+set}" = set; then
  1018. echo $ECHO_N "(cached) $ECHO_C" >&6
  1019. else
  1020. if test -n "$CC"; then
  1021. ac_cv_prog_CC="$CC" # Let the user override the test.
  1022. else
  1023. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1024. ac_dummy="$PATH"
  1025. for ac_dir in $ac_dummy; do
  1026. IFS=$ac_save_IFS
  1027. test -z "$ac_dir" && ac_dir=.
  1028. $as_executable_p "$ac_dir/$ac_word" || continue
  1029. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1030. echo "$as_me:1158: found $ac_dir/$ac_word" >&5
  1031. break
  1032. done
  1033. fi
  1034. fi
  1035. CC=$ac_cv_prog_CC
  1036. if test -n "$CC"; then
  1037. echo "$as_me:1166: result: $CC" >&5
  1038. echo "${ECHO_T}$CC" >&6
  1039. else
  1040. echo "$as_me:1169: result: no" >&5
  1041. echo "${ECHO_T}no" >&6
  1042. fi
  1043. test -n "$CC" && break
  1044. done
  1045. fi
  1046. if test -z "$CC"; then
  1047. ac_ct_CC=$CC
  1048. for ac_prog in cl
  1049. do
  1050. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1051. set dummy $ac_prog; ac_word=$2
  1052. echo "$as_me:1182: checking for $ac_word" >&5
  1053. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1054. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1055. echo $ECHO_N "(cached) $ECHO_C" >&6
  1056. else
  1057. if test -n "$ac_ct_CC"; then
  1058. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1059. else
  1060. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1061. ac_dummy="$PATH"
  1062. for ac_dir in $ac_dummy; do
  1063. IFS=$ac_save_IFS
  1064. test -z "$ac_dir" && ac_dir=.
  1065. $as_executable_p "$ac_dir/$ac_word" || continue
  1066. ac_cv_prog_ac_ct_CC="$ac_prog"
  1067. echo "$as_me:1197: found $ac_dir/$ac_word" >&5
  1068. break
  1069. done
  1070. fi
  1071. fi
  1072. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1073. if test -n "$ac_ct_CC"; then
  1074. echo "$as_me:1205: result: $ac_ct_CC" >&5
  1075. echo "${ECHO_T}$ac_ct_CC" >&6
  1076. else
  1077. echo "$as_me:1208: result: no" >&5
  1078. echo "${ECHO_T}no" >&6
  1079. fi
  1080. test -n "$ac_ct_CC" && break
  1081. done
  1082. CC=$ac_ct_CC
  1083. fi
  1084. fi
  1085. test -z "$CC" && { { echo "$as_me:1220: error: no acceptable cc found in \$PATH" >&5
  1086. echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
  1087. { (exit 1); exit 1; }; }
  1088. # Provide some information about the compiler.
  1089. echo "$as_me:1225:" \
  1090. "checking for C compiler version" >&5
  1091. ac_compiler=`set X $ac_compile; echo $2`
  1092. { (eval echo "$as_me:1228: \"$ac_compiler --version </dev/null >&5\"") >&5
  1093. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1094. ac_status=$?
  1095. echo "$as_me:1231: \$? = $ac_status" >&5
  1096. (exit $ac_status); }
  1097. { (eval echo "$as_me:1233: \"$ac_compiler -v </dev/null >&5\"") >&5
  1098. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1099. ac_status=$?
  1100. echo "$as_me:1236: \$? = $ac_status" >&5
  1101. (exit $ac_status); }
  1102. { (eval echo "$as_me:1238: \"$ac_compiler -V </dev/null >&5\"") >&5
  1103. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1104. ac_status=$?
  1105. echo "$as_me:1241: \$? = $ac_status" >&5
  1106. (exit $ac_status); }
  1107. cat >conftest.$ac_ext <<_ACEOF
  1108. #line 1245 "configure"
  1109. #include "confdefs.h"
  1110. int
  1111. main ()
  1112. {
  1113. ;
  1114. return 0;
  1115. }
  1116. _ACEOF
  1117. ac_clean_files_save=$ac_clean_files
  1118. ac_clean_files="$ac_clean_files a.out a.exe"
  1119. # Try to create an executable without -o first, disregard a.out.
  1120. # It will help us diagnose broken compilers, and finding out an intuition
  1121. # of exeext.
  1122. echo "$as_me:1261: checking for C compiler default output" >&5
  1123. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1124. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1125. if { (eval echo "$as_me:1264: \"$ac_link_default\"") >&5
  1126. (eval $ac_link_default) 2>&5
  1127. ac_status=$?
  1128. echo "$as_me:1267: \$? = $ac_status" >&5
  1129. (exit $ac_status); }; then
  1130. # Find the output, starting from the most likely. This scheme is
  1131. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1132. # resort.
  1133. for ac_file in `ls a.exe conftest.exe 2>/dev/null;
  1134. ls a.out conftest 2>/dev/null;
  1135. ls a.* conftest.* 2>/dev/null`; do
  1136. case $ac_file in
  1137. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1138. a.out ) # We found the default executable, but exeext='' is most
  1139. # certainly right.
  1140. break;;
  1141. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1142. # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  1143. export ac_cv_exeext
  1144. break;;
  1145. * ) break;;
  1146. esac
  1147. done
  1148. else
  1149. echo "$as_me: failed program was:" >&5
  1150. cat conftest.$ac_ext >&5
  1151. { { echo "$as_me:1290: error: C compiler cannot create executables" >&5
  1152. echo "$as_me: error: C compiler cannot create executables" >&2;}
  1153. { (exit 77); exit 77; }; }
  1154. fi
  1155. ac_exeext=$ac_cv_exeext
  1156. echo "$as_me:1296: result: $ac_file" >&5
  1157. echo "${ECHO_T}$ac_file" >&6
  1158. # Check the compiler produces executables we can run. If not, either
  1159. # the compiler is broken, or we cross compile.
  1160. echo "$as_me:1301: checking whether the C compiler works" >&5
  1161. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1162. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1163. # If not cross compiling, check that we can run a simple program.
  1164. if test "$cross_compiling" != yes; then
  1165. if { ac_try='./$ac_file'
  1166. { (eval echo "$as_me:1307: \"$ac_try\"") >&5
  1167. (eval $ac_try) 2>&5
  1168. ac_status=$?
  1169. echo "$as_me:1310: \$? = $ac_status" >&5
  1170. (exit $ac_status); }; }; then
  1171. cross_compiling=no
  1172. else
  1173. if test "$cross_compiling" = maybe; then
  1174. cross_compiling=yes
  1175. else
  1176. { { echo "$as_me:1317: error: cannot run C compiled programs.
  1177. If you meant to cross compile, use \`--host'." >&5
  1178. echo "$as_me: error: cannot run C compiled programs.
  1179. If you meant to cross compile, use \`--host'." >&2;}
  1180. { (exit 1); exit 1; }; }
  1181. fi
  1182. fi
  1183. fi
  1184. echo "$as_me:1325: result: yes" >&5
  1185. echo "${ECHO_T}yes" >&6
  1186. rm -f a.out a.exe conftest$ac_cv_exeext
  1187. ac_clean_files=$ac_clean_files_save
  1188. # Check the compiler produces executables we can run. If not, either
  1189. # the compiler is broken, or we cross compile.
  1190. echo "$as_me:1332: checking whether we are cross compiling" >&5
  1191. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1192. echo "$as_me:1334: result: $cross_compiling" >&5
  1193. echo "${ECHO_T}$cross_compiling" >&6
  1194. echo "$as_me:1337: checking for executable suffix" >&5
  1195. echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
  1196. if { (eval echo "$as_me:1339: \"$ac_link\"") >&5
  1197. (eval $ac_link) 2>&5
  1198. ac_status=$?
  1199. echo "$as_me:1342: \$? = $ac_status" >&5
  1200. (exit $ac_status); }; then
  1201. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1202. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1203. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1204. # `rm'.
  1205. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  1206. case $ac_file in
  1207. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1208. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1209. export ac_cv_exeext
  1210. break;;
  1211. * ) break;;
  1212. esac
  1213. done
  1214. else
  1215. { { echo "$as_me:1358: error: cannot compute EXEEXT: cannot compile and link" >&5
  1216. echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
  1217. { (exit 1); exit 1; }; }
  1218. fi
  1219. rm -f conftest$ac_cv_exeext
  1220. echo "$as_me:1364: result: $ac_cv_exeext" >&5
  1221. echo "${ECHO_T}$ac_cv_exeext" >&6
  1222. rm -f conftest.$ac_ext
  1223. EXEEXT=$ac_cv_exeext
  1224. ac_exeext=$EXEEXT
  1225. echo "$as_me:1370: checking for object suffix" >&5
  1226. echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
  1227. if test "${ac_cv_objext+set}" = set; then
  1228. echo $ECHO_N "(cached) $ECHO_C" >&6
  1229. else
  1230. cat >conftest.$ac_ext <<_ACEOF
  1231. #line 1376 "configure"
  1232. #include "confdefs.h"
  1233. int
  1234. main ()
  1235. {
  1236. ;
  1237. return 0;
  1238. }
  1239. _ACEOF
  1240. rm -f conftest.o conftest.obj
  1241. if { (eval echo "$as_me:1388: \"$ac_compile\"") >&5
  1242. (eval $ac_compile) 2>&5
  1243. ac_status=$?
  1244. echo "$as_me:1391: \$? = $ac_status" >&5
  1245. (exit $ac_status); }; then
  1246. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1247. case $ac_file in
  1248. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1249. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1250. break;;
  1251. esac
  1252. done
  1253. else
  1254. echo "$as_me: failed program was:" >&5
  1255. cat conftest.$ac_ext >&5
  1256. { { echo "$as_me:1403: error: cannot compute OBJEXT: cannot compile" >&5
  1257. echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
  1258. { (exit 1); exit 1; }; }
  1259. fi
  1260. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1261. fi
  1262. echo "$as_me:1410: result: $ac_cv_objext" >&5
  1263. echo "${ECHO_T}$ac_cv_objext" >&6
  1264. OBJEXT=$ac_cv_objext
  1265. ac_objext=$OBJEXT
  1266. echo "$as_me:1414: checking whether we are using the GNU C compiler" >&5
  1267. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1268. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1269. echo $ECHO_N "(cached) $ECHO_C" >&6
  1270. else
  1271. cat >conftest.$ac_ext <<_ACEOF
  1272. #line 1420 "configure"
  1273. #include "confdefs.h"
  1274. int
  1275. main ()
  1276. {
  1277. #ifndef __GNUC__
  1278. choke me
  1279. #endif
  1280. ;
  1281. return 0;
  1282. }
  1283. _ACEOF
  1284. rm -f conftest.$ac_objext
  1285. if { (eval echo "$as_me:1435: \"$ac_compile\"") >&5
  1286. (eval $ac_compile) 2>&5
  1287. ac_status=$?
  1288. echo "$as_me:1438: \$? = $ac_status" >&5
  1289. (exit $ac_status); } &&
  1290. { ac_try='test -s conftest.$ac_objext'
  1291. { (eval echo "$as_me:1441: \"$ac_try\"") >&5
  1292. (eval $ac_try) 2>&5
  1293. ac_status=$?
  1294. echo "$as_me:1444: \$? = $ac_status" >&5
  1295. (exit $ac_status); }; }; then
  1296. ac_compiler_gnu=yes
  1297. else
  1298. echo "$as_me: failed program was:" >&5
  1299. cat conftest.$ac_ext >&5
  1300. ac_compiler_gnu=no
  1301. fi
  1302. rm -f conftest.$ac_objext conftest.$ac_ext
  1303. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1304. fi
  1305. echo "$as_me:1456: result: $ac_cv_c_compiler_gnu" >&5
  1306. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1307. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1308. ac_test_CFLAGS=${CFLAGS+set}
  1309. ac_save_CFLAGS=$CFLAGS
  1310. CFLAGS="-g"
  1311. echo "$as_me:1462: checking whether $CC accepts -g" >&5
  1312. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1313. if test "${ac_cv_prog_cc_g+set}" = set; then
  1314. echo $ECHO_N "(cached) $ECHO_C" >&6
  1315. else
  1316. cat >conftest.$ac_ext <<_ACEOF
  1317. #line 1468 "configure"
  1318. #include "confdefs.h"
  1319. int
  1320. main ()
  1321. {
  1322. ;
  1323. return 0;
  1324. }
  1325. _ACEOF
  1326. rm -f conftest.$ac_objext
  1327. if { (eval echo "$as_me:1480: \"$ac_compile\"") >&5
  1328. (eval $ac_compile) 2>&5
  1329. ac_status=$?
  1330. echo "$as_me:1483: \$? = $ac_status" >&5
  1331. (exit $ac_status); } &&
  1332. { ac_try='test -s conftest.$ac_objext'
  1333. { (eval echo "$as_me:1486: \"$ac_try\"") >&5
  1334. (eval $ac_try) 2>&5
  1335. ac_status=$?
  1336. echo "$as_me:1489: \$? = $ac_status" >&5
  1337. (exit $ac_status); }; }; then
  1338. ac_cv_prog_cc_g=yes
  1339. else
  1340. echo "$as_me: failed program was:" >&5
  1341. cat conftest.$ac_ext >&5
  1342. ac_cv_prog_cc_g=no
  1343. fi
  1344. rm -f conftest.$ac_objext conftest.$ac_ext
  1345. fi
  1346. echo "$as_me:1499: result: $ac_cv_prog_cc_g" >&5
  1347. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1348. if test "$ac_test_CFLAGS" = set; then
  1349. CFLAGS=$ac_save_CFLAGS
  1350. elif test $ac_cv_prog_cc_g = yes; then
  1351. if test "$GCC" = yes; then
  1352. CFLAGS="-g -O2"
  1353. else
  1354. CFLAGS="-g"
  1355. fi
  1356. else
  1357. if test "$GCC" = yes; then
  1358. CFLAGS="-O2"
  1359. else
  1360. CFLAGS=
  1361. fi
  1362. fi
  1363. # Some people use a C++ compiler to compile C. Since we use `exit',
  1364. # in C++ we need to declare it. In case someone uses the same compiler
  1365. # for both compiling C and C++ we need to have the C++ compiler decide
  1366. # the declaration of exit, since it's the most demanding environment.
  1367. cat >conftest.$ac_ext <<_ACEOF
  1368. #ifndef __cplusplus
  1369. choke me
  1370. #endif
  1371. _ACEOF
  1372. rm -f conftest.$ac_objext
  1373. if { (eval echo "$as_me:1526: \"$ac_compile\"") >&5
  1374. (eval $ac_compile) 2>&5
  1375. ac_status=$?
  1376. echo "$as_me:1529: \$? = $ac_status" >&5
  1377. (exit $ac_status); } &&
  1378. { ac_try='test -s conftest.$ac_objext'
  1379. { (eval echo "$as_me:1532: \"$ac_try\"") >&5
  1380. (eval $ac_try) 2>&5
  1381. ac_status=$?
  1382. echo "$as_me:1535: \$? = $ac_status" >&5
  1383. (exit $ac_status); }; }; then
  1384. for ac_declaration in \
  1385. ''\
  1386. '#include <stdlib.h>' \
  1387. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1388. 'extern "C" void std::exit (int); using std::exit;' \
  1389. 'extern "C" void exit (int) throw ();' \
  1390. 'extern "C" void exit (int);' \
  1391. 'void exit (int);'
  1392. do
  1393. cat >conftest.$ac_ext <<_ACEOF
  1394. #line 1547 "configure"
  1395. #include "confdefs.h"
  1396. #include <stdlib.h>
  1397. $ac_declaration
  1398. int
  1399. main ()
  1400. {
  1401. exit (42);
  1402. ;
  1403. return 0;
  1404. }
  1405. _ACEOF
  1406. rm -f conftest.$ac_objext
  1407. if { (eval echo "$as_me:1560: \"$ac_compile\"") >&5
  1408. (eval $ac_compile) 2>&5
  1409. ac_status=$?
  1410. echo "$as_me:1563: \$? = $ac_status" >&5
  1411. (exit $ac_status); } &&
  1412. { ac_try='test -s conftest.$ac_objext'
  1413. { (eval echo "$as_me:1566: \"$ac_try\"") >&5
  1414. (eval $ac_try) 2>&5
  1415. ac_status=$?
  1416. echo "$as_me:1569: \$? = $ac_status" >&5
  1417. (exit $ac_status); }; }; then
  1418. :
  1419. else
  1420. echo "$as_me: failed program was:" >&5
  1421. cat conftest.$ac_ext >&5
  1422. continue
  1423. fi
  1424. rm -f conftest.$ac_objext conftest.$ac_ext
  1425. cat >conftest.$ac_ext <<_ACEOF
  1426. #line 1579 "configure"
  1427. #include "confdefs.h"
  1428. $ac_declaration
  1429. int
  1430. main ()
  1431. {
  1432. exit (42);
  1433. ;
  1434. return 0;
  1435. }
  1436. _ACEOF
  1437. rm -f conftest.$ac_objext
  1438. if { (eval echo "$as_me:1591: \"$ac_compile\"") >&5
  1439. (eval $ac_compile) 2>&5
  1440. ac_status=$?
  1441. echo "$as_me:1594: \$? = $ac_status" >&5
  1442. (exit $ac_status); } &&
  1443. { ac_try='test -s conftest.$ac_objext'
  1444. { (eval echo "$as_me:1597: \"$ac_try\"") >&5
  1445. (eval $ac_try) 2>&5
  1446. ac_status=$?
  1447. echo "$as_me:1600: \$? = $ac_status" >&5
  1448. (exit $ac_status); }; }; then
  1449. break
  1450. else
  1451. echo "$as_me: failed program was:" >&5
  1452. cat conftest.$ac_ext >&5
  1453. fi
  1454. rm -f conftest.$ac_objext conftest.$ac_ext
  1455. done
  1456. rm -f conftest*
  1457. if test -n "$ac_declaration"; then
  1458. echo '#ifdef __cplusplus' >>confdefs.h
  1459. echo $ac_declaration >>confdefs.h
  1460. echo '#endif' >>confdefs.h
  1461. fi
  1462. else
  1463. echo "$as_me: failed program was:" >&5
  1464. cat conftest.$ac_ext >&5
  1465. fi
  1466. rm -f conftest.$ac_objext conftest.$ac_ext
  1467. ac_ext=c
  1468. ac_cpp='$CPP $CPPFLAGS'
  1469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1472. ac_ext=cc
  1473. ac_cpp='$CXXCPP $CPPFLAGS'
  1474. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1475. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1476. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1477. if test -n "$ac_tool_prefix"; then
  1478. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1479. do
  1480. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1481. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1482. echo "$as_me:1637: checking for $ac_word" >&5
  1483. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1484. if test "${ac_cv_prog_CXX+set}" = set; then
  1485. echo $ECHO_N "(cached) $ECHO_C" >&6
  1486. else
  1487. if test -n "$CXX"; then
  1488. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1489. else
  1490. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1491. ac_dummy="$PATH"
  1492. for ac_dir in $ac_dummy; do
  1493. IFS=$ac_save_IFS
  1494. test -z "$ac_dir" && ac_dir=.
  1495. $as_executable_p "$ac_dir/$ac_word" || continue
  1496. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1497. echo "$as_me:1652: found $ac_dir/$ac_word" >&5
  1498. break
  1499. done
  1500. fi
  1501. fi
  1502. CXX=$ac_cv_prog_CXX
  1503. if test -n "$CXX"; then
  1504. echo "$as_me:1660: result: $CXX" >&5
  1505. echo "${ECHO_T}$CXX" >&6
  1506. else
  1507. echo "$as_me:1663: result: no" >&5
  1508. echo "${ECHO_T}no" >&6
  1509. fi
  1510. test -n "$CXX" && break
  1511. done
  1512. fi
  1513. if test -z "$CXX"; then
  1514. ac_ct_CXX=$CXX
  1515. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1516. do
  1517. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1518. set dummy $ac_prog; ac_word=$2
  1519. echo "$as_me:1676: checking for $ac_word" >&5
  1520. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1521. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1522. echo $ECHO_N "(cached) $ECHO_C" >&6
  1523. else
  1524. if test -n "$ac_ct_CXX"; then
  1525. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1526. else
  1527. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1528. ac_dummy="$PATH"
  1529. for ac_dir in $ac_dummy; do
  1530. IFS=$ac_save_IFS
  1531. test -z "$ac_dir" && ac_dir=.
  1532. $as_executable_p "$ac_dir/$ac_word" || continue
  1533. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1534. echo "$as_me:1691: found $ac_dir/$ac_word" >&5
  1535. break
  1536. done
  1537. fi
  1538. fi
  1539. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1540. if test -n "$ac_ct_CXX"; then
  1541. echo "$as_me:1699: result: $ac_ct_CXX" >&5
  1542. echo "${ECHO_T}$ac_ct_CXX" >&6
  1543. else
  1544. echo "$as_me:1702: result: no" >&5
  1545. echo "${ECHO_T}no" >&6
  1546. fi
  1547. test -n "$ac_ct_CXX" && break
  1548. done
  1549. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1550. CXX=$ac_ct_CXX
  1551. fi
  1552. # Provide some information about the compiler.
  1553. echo "$as_me:1714:" \
  1554. "checking for C++ compiler version" >&5
  1555. ac_compiler=`set X $ac_compile; echo $2`
  1556. { (eval echo "$as_me:1717: \"$ac_compiler --version </dev/null >&5\"") >&5
  1557. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1558. ac_status=$?
  1559. echo "$as_me:1720: \$? = $ac_status" >&5
  1560. (exit $ac_status); }
  1561. { (eval echo "$as_me:1722: \"$ac_compiler -v </dev/null >&5\"") >&5
  1562. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1563. ac_status=$?
  1564. echo "$as_me:1725: \$? = $ac_status" >&5
  1565. (exit $ac_status); }
  1566. { (eval echo "$as_me:1727: \"$ac_compiler -V </dev/null >&5\"") >&5
  1567. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1568. ac_status=$?
  1569. echo "$as_me:1730: \$? = $ac_status" >&5
  1570. (exit $ac_status); }
  1571. echo "$as_me:1733: checking whether we are using the GNU C++ compiler" >&5
  1572. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1573. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1574. echo $ECHO_N "(cached) $ECHO_C" >&6
  1575. else
  1576. cat >conftest.$ac_ext <<_ACEOF
  1577. #line 1739 "configure"
  1578. #include "confdefs.h"
  1579. int
  1580. main ()
  1581. {
  1582. #ifndef __GNUC__
  1583. choke me
  1584. #endif
  1585. ;
  1586. return 0;
  1587. }
  1588. _ACEOF
  1589. rm -f conftest.$ac_objext
  1590. if { (eval echo "$as_me:1754: \"$ac_compile\"") >&5
  1591. (eval $ac_compile) 2>&5
  1592. ac_status=$?
  1593. echo "$as_me:1757: \$? = $ac_status" >&5
  1594. (exit $ac_status); } &&
  1595. { ac_try='test -s conftest.$ac_objext'
  1596. { (eval echo "$as_me:1760: \"$ac_try\"") >&5
  1597. (eval $ac_try) 2>&5
  1598. ac_status=$?
  1599. echo "$as_me:1763: \$? = $ac_status" >&5
  1600. (exit $ac_status); }; }; then
  1601. ac_compiler_gnu=yes
  1602. else
  1603. echo "$as_me: failed program was:" >&5
  1604. cat conftest.$ac_ext >&5
  1605. ac_compiler_gnu=no
  1606. fi
  1607. rm -f conftest.$ac_objext conftest.$ac_ext
  1608. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1609. fi
  1610. echo "$as_me:1775: result: $ac_cv_cxx_compiler_gnu" >&5
  1611. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  1612. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1613. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1614. ac_save_CXXFLAGS=$CXXFLAGS
  1615. CXXFLAGS="-g"
  1616. echo "$as_me:1781: checking whether $CXX accepts -g" >&5
  1617. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  1618. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1619. echo $ECHO_N "(cached) $ECHO_C" >&6
  1620. else
  1621. cat >conftest.$ac_ext <<_ACEOF
  1622. #line 1787 "configure"
  1623. #include "confdefs.h"
  1624. int
  1625. main ()
  1626. {
  1627. ;
  1628. return 0;
  1629. }
  1630. _ACEOF
  1631. rm -f conftest.$ac_objext
  1632. if { (eval echo "$as_me:1799: \"$ac_compile\"") >&5
  1633. (eval $ac_compile) 2>&5
  1634. ac_status=$?
  1635. echo "$as_me:1802: \$? = $ac_status" >&5
  1636. (exit $ac_status); } &&
  1637. { ac_try='test -s conftest.$ac_objext'
  1638. { (eval echo "$as_me:1805: \"$ac_try\"") >&5
  1639. (eval $ac_try) 2>&5
  1640. ac_status=$?
  1641. echo "$as_me:1808: \$? = $ac_status" >&5
  1642. (exit $ac_status); }; }; then
  1643. ac_cv_prog_cxx_g=yes
  1644. else
  1645. echo "$as_me: failed program was:" >&5
  1646. cat conftest.$ac_ext >&5
  1647. ac_cv_prog_cxx_g=no
  1648. fi
  1649. rm -f conftest.$ac_objext conftest.$ac_ext
  1650. fi
  1651. echo "$as_me:1818: result: $ac_cv_prog_cxx_g" >&5
  1652. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  1653. if test "$ac_test_CXXFLAGS" = set; then
  1654. CXXFLAGS=$ac_save_CXXFLAGS
  1655. elif test $ac_cv_prog_cxx_g = yes; then
  1656. if test "$GXX" = yes; then
  1657. CXXFLAGS="-g -O2"
  1658. else
  1659. CXXFLAGS="-g"
  1660. fi
  1661. else
  1662. if test "$GXX" = yes; then
  1663. CXXFLAGS="-O2"
  1664. else
  1665. CXXFLAGS=
  1666. fi
  1667. fi
  1668. for ac_declaration in \
  1669. ''\
  1670. '#include <stdlib.h>' \
  1671. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1672. 'extern "C" void std::exit (int); using std::exit;' \
  1673. 'extern "C" void exit (int) throw ();' \
  1674. 'extern "C" void exit (int);' \
  1675. 'void exit (int);'
  1676. do
  1677. cat >conftest.$ac_ext <<_ACEOF
  1678. #line 1845 "configure"
  1679. #include "confdefs.h"
  1680. #include <stdlib.h>
  1681. $ac_declaration
  1682. int
  1683. main ()
  1684. {
  1685. exit (42);
  1686. ;
  1687. return 0;
  1688. }
  1689. _ACEOF
  1690. rm -f conftest.$ac_objext
  1691. if { (eval echo "$as_me:1858: \"$ac_compile\"") >&5
  1692. (eval $ac_compile) 2>&5
  1693. ac_status=$?
  1694. echo "$as_me:1861: \$? = $ac_status" >&5
  1695. (exit $ac_status); } &&
  1696. { ac_try='test -s conftest.$ac_objext'
  1697. { (eval echo "$as_me:1864: \"$ac_try\"") >&5
  1698. (eval $ac_try) 2>&5
  1699. ac_status=$?
  1700. echo "$as_me:1867: \$? = $ac_status" >&5
  1701. (exit $ac_status); }; }; then
  1702. :
  1703. else
  1704. echo "$as_me: failed program was:" >&5
  1705. cat conftest.$ac_ext >&5
  1706. continue
  1707. fi
  1708. rm -f conftest.$ac_objext conftest.$ac_ext
  1709. cat >conftest.$ac_ext <<_ACEOF
  1710. #line 1877 "configure"
  1711. #include "confdefs.h"
  1712. $ac_declaration
  1713. int
  1714. main ()
  1715. {
  1716. exit (42);
  1717. ;
  1718. return 0;
  1719. }
  1720. _ACEOF
  1721. rm -f conftest.$ac_objext
  1722. if { (eval echo "$as_me:1889: \"$ac_compile\"") >&5
  1723. (eval $ac_compile) 2>&5
  1724. ac_status=$?
  1725. echo "$as_me:1892: \$? = $ac_status" >&5
  1726. (exit $ac_status); } &&
  1727. { ac_try='test -s conftest.$ac_objext'
  1728. { (eval echo "$as_me:1895: \"$ac_try\"") >&5
  1729. (eval $ac_try) 2>&5
  1730. ac_status=$?
  1731. echo "$as_me:1898: \$? = $ac_status" >&5
  1732. (exit $ac_status); }; }; then
  1733. break
  1734. else
  1735. echo "$as_me: failed program was:" >&5
  1736. cat conftest.$ac_ext >&5
  1737. fi
  1738. rm -f conftest.$ac_objext conftest.$ac_ext
  1739. done
  1740. rm -f conftest*
  1741. if test -n "$ac_declaration"; then
  1742. echo '#ifdef __cplusplus' >>confdefs.h
  1743. echo $ac_declaration >>confdefs.h
  1744. echo '#endif' >>confdefs.h
  1745. fi
  1746. ac_ext=c
  1747. ac_cpp='$CPP $CPPFLAGS'
  1748. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1749. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1750. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1751. fullSrcDir=`cd $srcdir; pwd`
  1752. CMAKE_ROOT_DIR=$fullSrcDir
  1753. CMAKE_ANSI_CFLAGS=""
  1754. # on hp use -Aa for ansi
  1755. if test $ac_cv_cxx_compiler_gnu = no; then
  1756. case $system in
  1757. HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
  1758. echo $ac_n "checking whether ${CC} accepts -Aa""... $ac_c" 1>&6
  1759. echo 'void f(){}' > conftest.c
  1760. if test -z "`${CC} -Aa -c conftest.c 2>&1`"; then
  1761. echo "$ac_t""yes" 1>&6
  1762. CMAKE_ANSI_CFLAGS="-Aa"
  1763. else
  1764. echo "$ac_t""no" 1>&6
  1765. fi
  1766. rm -f conftest*
  1767. ;;
  1768. IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
  1769. echo $ac_n "checking whether ${CC} accepts -LANG:std""... $ac_c" 1>&6
  1770. echo 'void f(){}' > conftest.c
  1771. if test -z "`${CC} -LANG:std -c conftest.c 2>&1`"; then
  1772. echo "$ac_t""yes" 1>&6
  1773. CMAKE_ANSI_CFLAGS="-LANG:std"
  1774. else
  1775. echo "$ac_t""no" 1>&6
  1776. fi
  1777. rm -f conftest*
  1778. ;;
  1779. esac
  1780. fi
  1781. # if we are not running g++ then we might need some other flags
  1782. # to get the templates compiled correctly
  1783. CMAKE_TEMPLATE_FLAGS=""
  1784. if test $ac_cv_cxx_compiler_gnu = no; then
  1785. echo $ac_n "checking whether ${CXX} accepts -ptused -no_prelink""... $ac_c" 1>&6
  1786. echo 'void f(){}' > conftest.cc
  1787. if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
  1788. echo "$ac_t""yes" 1>&6
  1789. CMAKE_TEMPLATE_FLAGS="-ptused -no_prelink"
  1790. else
  1791. echo "$ac_t""no" 1>&6
  1792. fi
  1793. rm -f conftest*
  1794. echo $ac_n "checking whether ${CXX} accepts -instances=semiexplicit""... $ac_c" 1>&6
  1795. echo 'void f(){}' > conftest.cc
  1796. if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
  1797. echo "$ac_t""yes" 1>&6
  1798. CMAKE_TEMPLATE_FLAGS="-instances=static"
  1799. else
  1800. echo "$ac_t""no" 1>&6
  1801. fi
  1802. fi
  1803. # check no g++ compilers to see if they have the standard
  1804. # ansi stream files (without the .h)
  1805. if test $ac_cv_cxx_compiler_gnu = no; then
  1806. echo "$as_me:1978: checking ansi standard C++ stream headers " >&5
  1807. echo $ECHO_N "checking ansi standard C++ stream headers ... $ECHO_C" >&6
  1808. rm -rf conftest.*
  1809. cat > conftest.cc <<!
  1810. #include <iostream>
  1811. !
  1812. if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
  1813. echo "$ac_t""yes" 1>&6
  1814. else
  1815. cat >>confdefs.h <<\EOF
  1816. #define CMAKE_NO_ANSI_STREAM_HEADERS 1
  1817. EOF
  1818. echo "$ac_t""no" 1>&6
  1819. fi
  1820. fi
  1821. # check to see if stl is in the std namespace
  1822. if test $ac_cv_cxx_compiler_gnu = no; then
  1823. echo "$as_me:1997: checking ansi standard namespace support " >&5
  1824. echo $ECHO_N "checking ansi standard namespace support ... $ECHO_C" >&6
  1825. rm -rf conftest.*
  1826. cat > conftest.cc <<!
  1827. #include <list>
  1828. void foo() { std::list<int> l; }
  1829. !
  1830. if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
  1831. echo "$ac_t""yes" 1>&6
  1832. else
  1833. cat >>confdefs.h <<\EOF
  1834. #define CMAKE_NO_STD_NAMESPACE 1
  1835. EOF
  1836. echo "$ac_t""no" 1>&6
  1837. fi
  1838. fi
  1839. # check to see if for scoping is supported
  1840. if test $ac_cv_cxx_compiler_gnu = no; then
  1841. echo "$as_me:2017: checking ansi for scope support " >&5
  1842. echo $ECHO_N "checking ansi for scope support ... $ECHO_C" >&6
  1843. rm -rf conftest.*
  1844. cat > conftest.cc <<!
  1845. void foo() { for(int i;;); for(int i;;); }
  1846. !
  1847. if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
  1848. echo "$ac_t""yes" 1>&6
  1849. else
  1850. cat >>confdefs.h <<\EOF
  1851. #define CMAKE_NO_ANSI_FOR_SCOPE 1
  1852. EOF
  1853. echo "$ac_t""no" 1>&6
  1854. fi
  1855. fi
  1856. # find make to use to build cmake, prefer gmake
  1857. for ac_prog in gmake make
  1858. do
  1859. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1860. set dummy $ac_prog; ac_word=$2
  1861. echo "$as_me:2039: checking for $ac_word" >&5
  1862. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1863. if test "${ac_cv_path_RUNMAKE+set}" = set; then
  1864. echo $ECHO_N "(cached) $ECHO_C" >&6
  1865. else
  1866. case $RUNMAKE in
  1867. [\\/]* | ?:[\\/]*)
  1868. ac_cv_path_RUNMAKE="$RUNMAKE" # Let the user override the test with a path.
  1869. ;;
  1870. *)
  1871. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1872. ac_dummy="$PATH"
  1873. for ac_dir in $ac_dummy; do
  1874. IFS=$ac_save_IFS
  1875. test -z "$ac_dir" && ac_dir=.
  1876. if $as_executable_p "$ac_dir/$ac_word"; then
  1877. ac_cv_path_RUNMAKE="$ac_dir/$ac_word"
  1878. echo "$as_me:2056: found $ac_dir/$ac_word" >&5
  1879. break
  1880. fi
  1881. done
  1882. ;;
  1883. esac
  1884. fi
  1885. RUNMAKE=$ac_cv_path_RUNMAKE
  1886. if test -n "$RUNMAKE"; then
  1887. echo "$as_me:2067: result: $RUNMAKE" >&5
  1888. echo "${ECHO_T}$RUNMAKE" >&6
  1889. else
  1890. echo "$as_me:2070: result: no" >&5
  1891. echo "${ECHO_T}no" >&6
  1892. fi
  1893. test -n "$RUNMAKE" && break
  1894. done
  1895. ac_config_files="$ac_config_files Makefile Source/Makefile"
  1896. cat >confcache <<\_ACEOF
  1897. # This file is a shell script that caches the results of configure
  1898. # tests run on this system so they can be shared between configure
  1899. # scripts and configure runs, see configure's option --config-cache.
  1900. # It is not useful on other systems. If it contains results you don't
  1901. # want to keep, you may remove or edit it.
  1902. #
  1903. # config.status only pays attention to the cache file if you give it
  1904. # the --recheck option to rerun configure.
  1905. #
  1906. # `ac_cv_env_foo' variables (set or unset) will be overriden when
  1907. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  1908. # following values.
  1909. _ACEOF
  1910. # The following way of writing the cache mishandles newlines in values,
  1911. # but we know of no workaround that is simple, portable, and efficient.
  1912. # So, don't put newlines in cache variables' values.
  1913. # Ultrix sh set writes to stderr and can't be redirected directly,
  1914. # and sets the high bit in the cache file unless we assign to the vars.
  1915. {
  1916. (set) 2>&1 |
  1917. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1918. *ac_space=\ *)
  1919. # `set' does not quote correctly, so add quotes (double-quote
  1920. # substitution turns \\\\ into \\, and sed turns \\ into \).
  1921. sed -n \
  1922. "s/'/'\\\\''/g;
  1923. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  1924. ;;
  1925. *)
  1926. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1927. sed -n \
  1928. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1929. ;;
  1930. esac;
  1931. } |
  1932. sed '
  1933. t clear
  1934. : clear
  1935. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  1936. t end
  1937. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  1938. : end' >>confcache
  1939. if cmp -s $cache_file confcache; then :; else
  1940. if test -w $cache_file; then
  1941. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  1942. cat confcache >$cache_file
  1943. else
  1944. echo "not updating unwritable cache $cache_file"
  1945. fi
  1946. fi
  1947. rm -f confcache
  1948. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1949. # Let make expand exec_prefix.
  1950. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1951. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  1952. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  1953. # trailing colons and then remove the whole line if VPATH becomes empty
  1954. # (actually we leave an empty line to preserve line numbers).
  1955. if test "x$srcdir" = x.; then
  1956. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  1957. s/:*\$(srcdir):*/:/;
  1958. s/:*\${srcdir}:*/:/;
  1959. s/:*@srcdir@:*/:/;
  1960. s/^\([^=]*=[ ]*\):*/\1/;
  1961. s/:*$//;
  1962. s/^[^=]*=[ ]*$//;
  1963. }'
  1964. fi
  1965. DEFS=-DHAVE_CONFIG_H
  1966. : ${CONFIG_STATUS=./config.status}
  1967. ac_clean_files_save=$ac_clean_files
  1968. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  1969. { echo "$as_me:2157: creating $CONFIG_STATUS" >&5
  1970. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  1971. cat >$CONFIG_STATUS <<_ACEOF
  1972. #! $SHELL
  1973. # Generated automatically by configure.
  1974. # Run this file to recreate the current configuration.
  1975. # Compiler output produced by configure, useful for debugging
  1976. # configure, is in config.log if it exists.
  1977. debug=false
  1978. SHELL=\${CONFIG_SHELL-$SHELL}
  1979. ac_cs_invocation="\$0 \$@"
  1980. _ACEOF
  1981. cat >>$CONFIG_STATUS <<\_ACEOF
  1982. # Be Bourne compatible
  1983. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  1984. emulate sh
  1985. NULLCMD=:
  1986. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  1987. set -o posix
  1988. fi
  1989. # Name of the executable.
  1990. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  1991. if expr a : '\(a\)' >/dev/null 2>&1; then
  1992. as_expr=expr
  1993. else
  1994. as_expr=false
  1995. fi
  1996. rm -f conf$$ conf$$.exe conf$$.file
  1997. echo >conf$$.file
  1998. if ln -s conf$$.file conf$$ 2>/dev/null; then
  1999. # We could just check for DJGPP; but this test a) works b) is more generic
  2000. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  2001. if test -f conf$$.exe; then
  2002. # Don't use ln at all; we don't have any links
  2003. as_ln_s='cp -p'
  2004. else
  2005. as_ln_s='ln -s'
  2006. fi
  2007. elif ln conf$$.file conf$$ 2>/dev/null; then
  2008. as_ln_s=ln
  2009. else
  2010. as_ln_s='cp -p'
  2011. fi
  2012. rm -f conf$$ conf$$.exe conf$$.file
  2013. as_executable_p="test -f"
  2014. # Support unset when possible.
  2015. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  2016. as_unset=unset
  2017. else
  2018. as_unset=false
  2019. fi
  2020. # NLS nuisances.
  2021. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  2022. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  2023. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  2024. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  2025. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  2026. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  2027. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  2028. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  2029. # IFS
  2030. # We need space, tab and new line, in precisely that order.
  2031. as_nl='
  2032. '
  2033. IFS=" $as_nl"
  2034. # CDPATH.
  2035. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  2036. exec 6>&1
  2037. _ACEOF
  2038. # Files that config.status was made for.
  2039. if test -n "$ac_config_files"; then
  2040. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  2041. fi
  2042. if test -n "$ac_config_headers"; then
  2043. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  2044. fi
  2045. if test -n "$ac_config_links"; then
  2046. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  2047. fi
  2048. if test -n "$ac_config_commands"; then
  2049. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  2050. fi
  2051. cat >>$CONFIG_STATUS <<\EOF
  2052. ac_cs_usage="\
  2053. \`$as_me' instantiates files from templates according to the
  2054. current configuration.
  2055. Usage: $0 [OPTIONS] [FILE]...
  2056. -h, --help print this help, then exit
  2057. -V, --version print version number, then exit
  2058. -d, --debug don't remove temporary files
  2059. --recheck update $as_me by reconfiguring in the same conditions
  2060. --file=FILE[:TEMPLATE]
  2061. instantiate the configuration file FILE
  2062. --header=FILE[:TEMPLATE]
  2063. instantiate the configuration header FILE
  2064. Configuration files:
  2065. $config_files
  2066. Configuration headers:
  2067. $config_headers
  2068. Report bugs to <[email protected]>."
  2069. EOF
  2070. cat >>$CONFIG_STATUS <<EOF
  2071. ac_cs_version="\\
  2072. config.status
  2073. configured by $0, generated by GNU Autoconf 2.52,
  2074. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  2075. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  2076. Free Software Foundation, Inc.
  2077. This config.status script is free software; the Free Software Foundation
  2078. gives unlimited permission to copy, distribute and modify it."
  2079. srcdir=$srcdir
  2080. EOF
  2081. cat >>$CONFIG_STATUS <<\EOF
  2082. # If no file are specified by the user, then we need to provide default
  2083. # value. By we need to know if files were specified by the user.
  2084. ac_need_defaults=:
  2085. while test $# != 0
  2086. do
  2087. case $1 in
  2088. --*=*)
  2089. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  2090. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  2091. shift
  2092. set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
  2093. shift
  2094. ;;
  2095. -*);;
  2096. *) # This is not an option, so the user has probably given explicit
  2097. # arguments.
  2098. ac_need_defaults=false;;
  2099. esac
  2100. case $1 in
  2101. # Handling of the options.
  2102. EOF
  2103. cat >>$CONFIG_STATUS <<EOF
  2104. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2105. echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
  2106. exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
  2107. EOF
  2108. cat >>$CONFIG_STATUS <<\EOF
  2109. --version | --vers* | -V )
  2110. echo "$ac_cs_version"; exit 0 ;;
  2111. --he | --h)
  2112. # Conflict between --help and --header
  2113. { { echo "$as_me:2329: error: ambiguous option: $1
  2114. Try \`$0 --help' for more information." >&5
  2115. echo "$as_me: error: ambiguous option: $1
  2116. Try \`$0 --help' for more information." >&2;}
  2117. { (exit 1); exit 1; }; };;
  2118. --help | --hel | -h )
  2119. echo "$ac_cs_usage"; exit 0 ;;
  2120. --debug | --d* | -d )
  2121. debug=: ;;
  2122. --file | --fil | --fi | --f )
  2123. shift
  2124. CONFIG_FILES="$CONFIG_FILES $1"
  2125. ac_need_defaults=false;;
  2126. --header | --heade | --head | --hea )
  2127. shift
  2128. CONFIG_HEADERS="$CONFIG_HEADERS $1"
  2129. ac_need_defaults=false;;
  2130. # This is an error.
  2131. -*) { { echo "$as_me:2348: error: unrecognized option: $1
  2132. Try \`$0 --help' for more information." >&5
  2133. echo "$as_me: error: unrecognized option: $1
  2134. Try \`$0 --help' for more information." >&2;}
  2135. { (exit 1); exit 1; }; } ;;
  2136. *) ac_config_targets="$ac_config_targets $1" ;;
  2137. esac
  2138. shift
  2139. done
  2140. exec 5>>config.log
  2141. cat >&5 << _ACEOF
  2142. ## ----------------------- ##
  2143. ## Running config.status. ##
  2144. ## ----------------------- ##
  2145. This file was extended by $as_me 2.52, executed with
  2146. CONFIG_FILES = $CONFIG_FILES
  2147. CONFIG_HEADERS = $CONFIG_HEADERS
  2148. CONFIG_LINKS = $CONFIG_LINKS
  2149. CONFIG_COMMANDS = $CONFIG_COMMANDS
  2150. > $ac_cs_invocation
  2151. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  2152. _ACEOF
  2153. EOF
  2154. cat >>$CONFIG_STATUS <<\EOF
  2155. for ac_config_target in $ac_config_targets
  2156. do
  2157. case "$ac_config_target" in
  2158. # Handling of arguments.
  2159. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  2160. "Source/Makefile" ) CONFIG_FILES="$CONFIG_FILES Source/Makefile" ;;
  2161. "Source/cmConfigure.h" ) CONFIG_HEADERS="$CONFIG_HEADERS Source/cmConfigure.h" ;;
  2162. *) { { echo "$as_me:2386: error: invalid argument: $ac_config_target" >&5
  2163. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  2164. { (exit 1); exit 1; }; };;
  2165. esac
  2166. done
  2167. # If the user did not use the arguments to specify the items to instantiate,
  2168. # then the envvar interface is used. Set only those that are not.
  2169. # We use the long form for the default assignment because of an extremely
  2170. # bizarre bug on SunOS 4.1.3.
  2171. if $ac_need_defaults; then
  2172. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  2173. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  2174. fi
  2175. # Create a temporary directory, and hook for its removal unless debugging.
  2176. $debug ||
  2177. {
  2178. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  2179. trap '{ (exit 1); exit 1; }' 1 2 13 15
  2180. }
  2181. # Create a (secure) tmp directory for tmp files.
  2182. : ${TMPDIR=/tmp}
  2183. {
  2184. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  2185. test -n "$tmp" && test -d "$tmp"
  2186. } ||
  2187. {
  2188. tmp=$TMPDIR/cs$$-$RANDOM
  2189. (umask 077 && mkdir $tmp)
  2190. } ||
  2191. {
  2192. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  2193. { (exit 1); exit 1; }
  2194. }
  2195. EOF
  2196. cat >>$CONFIG_STATUS <<EOF
  2197. #
  2198. # CONFIG_FILES section.
  2199. #
  2200. # No need to generate the scripts if there are no CONFIG_FILES.
  2201. # This happens for instance when ./config.status config.h
  2202. if test -n "\$CONFIG_FILES"; then
  2203. # Protect against being on the right side of a sed subst in config.status.
  2204. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  2205. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  2206. s,@SHELL@,$SHELL,;t t
  2207. s,@exec_prefix@,$exec_prefix,;t t
  2208. s,@prefix@,$prefix,;t t
  2209. s,@program_transform_name@,$program_transform_name,;t t
  2210. s,@bindir@,$bindir,;t t
  2211. s,@sbindir@,$sbindir,;t t
  2212. s,@libexecdir@,$libexecdir,;t t
  2213. s,@datadir@,$datadir,;t t
  2214. s,@sysconfdir@,$sysconfdir,;t t
  2215. s,@sharedstatedir@,$sharedstatedir,;t t
  2216. s,@localstatedir@,$localstatedir,;t t
  2217. s,@libdir@,$libdir,;t t
  2218. s,@includedir@,$includedir,;t t
  2219. s,@oldincludedir@,$oldincludedir,;t t
  2220. s,@infodir@,$infodir,;t t
  2221. s,@mandir@,$mandir,;t t
  2222. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  2223. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  2224. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  2225. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  2226. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  2227. s,@build_alias@,$build_alias,;t t
  2228. s,@host_alias@,$host_alias,;t t
  2229. s,@target_alias@,$target_alias,;t t
  2230. s,@ECHO_C@,$ECHO_C,;t t
  2231. s,@ECHO_N@,$ECHO_N,;t t
  2232. s,@ECHO_T@,$ECHO_T,;t t
  2233. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  2234. s,@DEFS@,$DEFS,;t t
  2235. s,@LIBS@,$LIBS,;t t
  2236. s,@CMAKE_CONFIG_DIR@,$CMAKE_CONFIG_DIR,;t t
  2237. s,@CC@,$CC,;t t
  2238. s,@CFLAGS@,$CFLAGS,;t t
  2239. s,@LDFLAGS@,$LDFLAGS,;t t
  2240. s,@CPPFLAGS@,$CPPFLAGS,;t t
  2241. s,@ac_ct_CC@,$ac_ct_CC,;t t
  2242. s,@EXEEXT@,$EXEEXT,;t t
  2243. s,@OBJEXT@,$OBJEXT,;t t
  2244. s,@CXX@,$CXX,;t t
  2245. s,@CXXFLAGS@,$CXXFLAGS,;t t
  2246. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  2247. s,@CMAKE_ROOT_DIR@,$CMAKE_ROOT_DIR,;t t
  2248. s,@CMAKE_ANSI_CFLAGS@,$CMAKE_ANSI_CFLAGS,;t t
  2249. s,@CMAKE_TEMPLATE_FLAGS@,$CMAKE_TEMPLATE_FLAGS,;t t
  2250. s,@RUNMAKE@,$RUNMAKE,;t t
  2251. CEOF
  2252. EOF
  2253. cat >>$CONFIG_STATUS <<\EOF
  2254. # Split the substitutions into bite-sized pieces for seds with
  2255. # small command number limits, like on Digital OSF/1 and HP-UX.
  2256. ac_max_sed_lines=48
  2257. ac_sed_frag=1 # Number of current file.
  2258. ac_beg=1 # First line for current file.
  2259. ac_end=$ac_max_sed_lines # Line after last line for current file.
  2260. ac_more_lines=:
  2261. ac_sed_cmds=
  2262. while $ac_more_lines; do
  2263. if test $ac_beg -gt 1; then
  2264. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  2265. else
  2266. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  2267. fi
  2268. if test ! -s $tmp/subs.frag; then
  2269. ac_more_lines=false
  2270. else
  2271. # The purpose of the label and of the branching condition is to
  2272. # speed up the sed processing (if there are no `@' at all, there
  2273. # is no need to browse any of the substitutions).
  2274. # These are the two extra sed commands mentioned above.
  2275. (echo ':t
  2276. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  2277. if test -z "$ac_sed_cmds"; then
  2278. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  2279. else
  2280. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  2281. fi
  2282. ac_sed_frag=`expr $ac_sed_frag + 1`
  2283. ac_beg=$ac_end
  2284. ac_end=`expr $ac_end + $ac_max_sed_lines`
  2285. fi
  2286. done
  2287. if test -z "$ac_sed_cmds"; then
  2288. ac_sed_cmds=cat
  2289. fi
  2290. fi # test -n "$CONFIG_FILES"
  2291. EOF
  2292. cat >>$CONFIG_STATUS <<\EOF
  2293. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  2294. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2295. case $ac_file in
  2296. - | *:- | *:-:* ) # input from stdin
  2297. cat >$tmp/stdin
  2298. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  2299. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  2300. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  2301. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  2302. * ) ac_file_in=$ac_file.in ;;
  2303. esac
  2304. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  2305. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2306. X"$ac_file" : 'X\(//\)[^/]' \| \
  2307. X"$ac_file" : 'X\(//\)$' \| \
  2308. X"$ac_file" : 'X\(/\)' \| \
  2309. . : '\(.\)' 2>/dev/null ||
  2310. echo X"$ac_file" |
  2311. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  2312. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  2313. /^X\(\/\/\)$/{ s//\1/; q; }
  2314. /^X\(\/\).*/{ s//\1/; q; }
  2315. s/.*/./; q'`
  2316. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2317. { case "$ac_dir" in
  2318. [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  2319. *) as_incr_dir=.;;
  2320. esac
  2321. as_dummy="$ac_dir"
  2322. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  2323. case $as_mkdir_dir in
  2324. # Skip DOS drivespec
  2325. ?:) as_incr_dir=$as_mkdir_dir ;;
  2326. *)
  2327. as_incr_dir=$as_incr_dir/$as_mkdir_dir
  2328. test -d "$as_incr_dir" || mkdir "$as_incr_dir"
  2329. ;;
  2330. esac
  2331. done; }
  2332. ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
  2333. # A "../" for each directory in $ac_dir_suffix.
  2334. ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
  2335. else
  2336. ac_dir_suffix= ac_dots=
  2337. fi
  2338. case $srcdir in
  2339. .) ac_srcdir=.
  2340. if test -z "$ac_dots"; then
  2341. ac_top_srcdir=.
  2342. else
  2343. ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
  2344. fi ;;
  2345. [\\/]* | ?:[\\/]* )
  2346. ac_srcdir=$srcdir$ac_dir_suffix;
  2347. ac_top_srcdir=$srcdir ;;
  2348. *) # Relative path.
  2349. ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
  2350. ac_top_srcdir=$ac_dots$srcdir ;;
  2351. esac
  2352. if test x"$ac_file" != x-; then
  2353. { echo "$as_me:2591: creating $ac_file" >&5
  2354. echo "$as_me: creating $ac_file" >&6;}
  2355. rm -f "$ac_file"
  2356. fi
  2357. # Let's still pretend it is `configure' which instantiates (i.e., don't
  2358. # use $as_me), people would be surprised to read:
  2359. # /* config.h. Generated automatically by config.status. */
  2360. configure_input="Generated automatically from `echo $ac_file_in |
  2361. sed 's,.*/,,'` by configure."
  2362. # First look for the input files in the build tree, otherwise in the
  2363. # src tree.
  2364. ac_file_inputs=`IFS=:
  2365. for f in $ac_file_in; do
  2366. case $f in
  2367. -) echo $tmp/stdin ;;
  2368. [\\/$]*)
  2369. # Absolute (can't be DOS-style, as IFS=:)
  2370. test -f "$f" || { { echo "$as_me:2609: error: cannot find input file: $f" >&5
  2371. echo "$as_me: error: cannot find input file: $f" >&2;}
  2372. { (exit 1); exit 1; }; }
  2373. echo $f;;
  2374. *) # Relative
  2375. if test -f "$f"; then
  2376. # Build tree
  2377. echo $f
  2378. elif test -f "$srcdir/$f"; then
  2379. # Source tree
  2380. echo $srcdir/$f
  2381. else
  2382. # /dev/null tree
  2383. { { echo "$as_me:2622: error: cannot find input file: $f" >&5
  2384. echo "$as_me: error: cannot find input file: $f" >&2;}
  2385. { (exit 1); exit 1; }; }
  2386. fi;;
  2387. esac
  2388. done` || { (exit 1); exit 1; }
  2389. EOF
  2390. cat >>$CONFIG_STATUS <<EOF
  2391. sed "$ac_vpsub
  2392. $extrasub
  2393. EOF
  2394. cat >>$CONFIG_STATUS <<\EOF
  2395. :t
  2396. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  2397. s,@configure_input@,$configure_input,;t t
  2398. s,@srcdir@,$ac_srcdir,;t t
  2399. s,@top_srcdir@,$ac_top_srcdir,;t t
  2400. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  2401. rm -f $tmp/stdin
  2402. if test x"$ac_file" != x-; then
  2403. mv $tmp/out $ac_file
  2404. else
  2405. cat $tmp/out
  2406. rm -f $tmp/out
  2407. fi
  2408. done
  2409. EOF
  2410. cat >>$CONFIG_STATUS <<\EOF
  2411. #
  2412. # CONFIG_HEADER section.
  2413. #
  2414. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2415. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2416. #
  2417. # ac_d sets the value in "#define NAME VALUE" lines.
  2418. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  2419. ac_dB='[ ].*$,\1#\2'
  2420. ac_dC=' '
  2421. ac_dD=',;t'
  2422. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2423. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2424. ac_uB='$,\1#\2define\3'
  2425. ac_uC=' '
  2426. ac_uD=',;t'
  2427. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  2428. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2429. case $ac_file in
  2430. - | *:- | *:-:* ) # input from stdin
  2431. cat >$tmp/stdin
  2432. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  2433. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  2434. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  2435. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  2436. * ) ac_file_in=$ac_file.in ;;
  2437. esac
  2438. test x"$ac_file" != x- && { echo "$as_me:2682: creating $ac_file" >&5
  2439. echo "$as_me: creating $ac_file" >&6;}
  2440. # First look for the input files in the build tree, otherwise in the
  2441. # src tree.
  2442. ac_file_inputs=`IFS=:
  2443. for f in $ac_file_in; do
  2444. case $f in
  2445. -) echo $tmp/stdin ;;
  2446. [\\/$]*)
  2447. # Absolute (can't be DOS-style, as IFS=:)
  2448. test -f "$f" || { { echo "$as_me:2693: error: cannot find input file: $f" >&5
  2449. echo "$as_me: error: cannot find input file: $f" >&2;}
  2450. { (exit 1); exit 1; }; }
  2451. echo $f;;
  2452. *) # Relative
  2453. if test -f "$f"; then
  2454. # Build tree
  2455. echo $f
  2456. elif test -f "$srcdir/$f"; then
  2457. # Source tree
  2458. echo $srcdir/$f
  2459. else
  2460. # /dev/null tree
  2461. { { echo "$as_me:2706: error: cannot find input file: $f" >&5
  2462. echo "$as_me: error: cannot find input file: $f" >&2;}
  2463. { (exit 1); exit 1; }; }
  2464. fi;;
  2465. esac
  2466. done` || { (exit 1); exit 1; }
  2467. # Remove the trailing spaces.
  2468. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  2469. EOF
  2470. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  2471. # `conftest.undefs', that substitutes the proper values into
  2472. # config.h.in to produce config.h. The first handles `#define'
  2473. # templates, and the second `#undef' templates.
  2474. # And first: Protect against being on the right side of a sed subst in
  2475. # config.status. Protect against being in an unquoted here document
  2476. # in config.status.
  2477. rm -f conftest.defines conftest.undefs
  2478. # Using a here document instead of a string reduces the quoting nightmare.
  2479. # Putting comments in sed scripts is not portable.
  2480. #
  2481. # `end' is used to avoid that the second main sed command (meant for
  2482. # 0-ary CPP macros) applies to n-ary macro definitions.
  2483. # See the Autoconf documentation for `clear'.
  2484. cat >confdef2sed.sed <<\EOF
  2485. s/[\\&,]/\\&/g
  2486. s,[\\$`],\\&,g
  2487. t clear
  2488. : clear
  2489. s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
  2490. t end
  2491. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  2492. : end
  2493. EOF
  2494. # If some macros were called several times there might be several times
  2495. # the same #defines, which is useless. Nevertheless, we may not want to
  2496. # sort them, since we want the *last* AC-DEFINE to be honored.
  2497. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  2498. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  2499. rm -f confdef2sed.sed
  2500. # This sed command replaces #undef with comments. This is necessary, for
  2501. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2502. # on some systems where configure will not decide to define it.
  2503. cat >>conftest.undefs <<\EOF
  2504. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  2505. EOF
  2506. # Break up conftest.defines because some shells have a limit on the size
  2507. # of here documents, and old seds have small limits too (100 cmds).
  2508. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  2509. echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  2510. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  2511. echo ' :' >>$CONFIG_STATUS
  2512. rm -f conftest.tail
  2513. while grep . conftest.defines >/dev/null
  2514. do
  2515. # Write a limited-size here document to $tmp/defines.sed.
  2516. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  2517. # Speed up: don't consider the non `#define' lines.
  2518. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  2519. # Work around the forget-to-reset-the-flag bug.
  2520. echo 't clr' >>$CONFIG_STATUS
  2521. echo ': clr' >>$CONFIG_STATUS
  2522. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  2523. echo 'CEOF
  2524. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  2525. rm -f $tmp/in
  2526. mv $tmp/out $tmp/in
  2527. ' >>$CONFIG_STATUS
  2528. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  2529. rm -f conftest.defines
  2530. mv conftest.tail conftest.defines
  2531. done
  2532. rm -f conftest.defines
  2533. echo ' fi # egrep' >>$CONFIG_STATUS
  2534. echo >>$CONFIG_STATUS
  2535. # Break up conftest.undefs because some shells have a limit on the size
  2536. # of here documents, and old seds have small limits too (100 cmds).
  2537. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  2538. rm -f conftest.tail
  2539. while grep . conftest.undefs >/dev/null
  2540. do
  2541. # Write a limited-size here document to $tmp/undefs.sed.
  2542. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  2543. # Speed up: don't consider the non `#undef'
  2544. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  2545. # Work around the forget-to-reset-the-flag bug.
  2546. echo 't clr' >>$CONFIG_STATUS
  2547. echo ': clr' >>$CONFIG_STATUS
  2548. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  2549. echo 'CEOF
  2550. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  2551. rm -f $tmp/in
  2552. mv $tmp/out $tmp/in
  2553. ' >>$CONFIG_STATUS
  2554. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  2555. rm -f conftest.undefs
  2556. mv conftest.tail conftest.undefs
  2557. done
  2558. rm -f conftest.undefs
  2559. cat >>$CONFIG_STATUS <<\EOF
  2560. # Let's still pretend it is `configure' which instantiates (i.e., don't
  2561. # use $as_me), people would be surprised to read:
  2562. # /* config.h. Generated automatically by config.status. */
  2563. if test x"$ac_file" = x-; then
  2564. echo "/* Generated automatically by configure. */" >$tmp/config.h
  2565. else
  2566. echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
  2567. fi
  2568. cat $tmp/in >>$tmp/config.h
  2569. rm -f $tmp/in
  2570. if test x"$ac_file" != x-; then
  2571. if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
  2572. { echo "$as_me:2823: $ac_file is unchanged" >&5
  2573. echo "$as_me: $ac_file is unchanged" >&6;}
  2574. else
  2575. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2576. X"$ac_file" : 'X\(//\)[^/]' \| \
  2577. X"$ac_file" : 'X\(//\)$' \| \
  2578. X"$ac_file" : 'X\(/\)' \| \
  2579. . : '\(.\)' 2>/dev/null ||
  2580. echo X"$ac_file" |
  2581. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  2582. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  2583. /^X\(\/\/\)$/{ s//\1/; q; }
  2584. /^X\(\/\).*/{ s//\1/; q; }
  2585. s/.*/./; q'`
  2586. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2587. { case "$ac_dir" in
  2588. [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  2589. *) as_incr_dir=.;;
  2590. esac
  2591. as_dummy="$ac_dir"
  2592. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  2593. case $as_mkdir_dir in
  2594. # Skip DOS drivespec
  2595. ?:) as_incr_dir=$as_mkdir_dir ;;
  2596. *)
  2597. as_incr_dir=$as_incr_dir/$as_mkdir_dir
  2598. test -d "$as_incr_dir" || mkdir "$as_incr_dir"
  2599. ;;
  2600. esac
  2601. done; }
  2602. fi
  2603. rm -f $ac_file
  2604. mv $tmp/config.h $ac_file
  2605. fi
  2606. else
  2607. cat $tmp/config.h
  2608. rm -f $tmp/config.h
  2609. fi
  2610. done
  2611. EOF
  2612. cat >>$CONFIG_STATUS <<\EOF
  2613. { (exit 0); exit 0; }
  2614. EOF
  2615. chmod +x $CONFIG_STATUS
  2616. ac_clean_files=$ac_clean_files_save
  2617. # configure is writing to config.log, and then calls config.status.
  2618. # config.status does its own redirection, appending to config.log.
  2619. # Unfortunately, on DOS this fails, as config.log is still kept open
  2620. # by configure, so config.status won't be able to write to it; its
  2621. # output is simply discarded. So we exec the FD to /dev/null,
  2622. # effectively closing config.log, so it can be properly (re)opened and
  2623. # appended to by config.status. When coming back to configure, we
  2624. # need to make the FD available again.
  2625. if test "$no_create" != yes; then
  2626. ac_cs_success=:
  2627. exec 5>/dev/null
  2628. $SHELL $CONFIG_STATUS || ac_cs_success=false
  2629. exec 5>>config.log
  2630. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  2631. # would make configure fail if this is the last instruction.
  2632. $ac_cs_success || { (exit 1); exit 1; }
  2633. fi
  2634. # build cmake
  2635. $RUNMAKE
  2636. # run cmake
  2637. ./Source/cmake $fullSrcDir
  2638. # run cmake depends
  2639. $RUNMAKE depend