configure 58 KB

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