~ubuntu-branches/ubuntu/saucy/nspr/saucy-updates

« back to all changes in this revision

Viewing changes to .pc/99_configure.patch/mozilla/nsprpub/configure

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-11-27 17:39:22 UTC
  • mfrom: (1.1.15) (27.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121127173922-1zfbtwmy1vczqwxq
Tags: 2:4.9.3-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - rules: Enable Thumb2 build on armel, armhf.
  - control: Change Vcs-* to XS-Debian-Vcs-*.
  - control: Add conflicts to evolution-documentation-*,
    language-support-translation-*.
  - control: Add Breaks: evolution-plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
3
 
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
 
#
7
 
# This configure script is free software; the Free Software Foundation
8
 
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
12
 
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
  --with-android-ndk=DIR
16
 
                      location where the Android NDK can be found"
17
 
ac_help="$ac_help
18
 
  --with-android-toolchain=DIR
19
 
                            location of the android toolchain, default NDK/build/prebuilt/HOST/arm-eabi-4.4.0"
20
 
ac_help="$ac_help
21
 
  --with-android-platform=DIR
22
 
                           location of platform dir, default NDK/build/platforms/android-5/arch-arm"
23
 
ac_help="$ac_help
24
 
  --with-dist-prefix=DIST_PREFIX
25
 
                          place build files in DIST_PREFIX [dist]"
26
 
ac_help="$ac_help
27
 
  --with-dist-bindir=DIR  build execuatables in DIR [DIST_PREFIX/bin]"
28
 
ac_help="$ac_help
29
 
  --with-dist-includedir=DIR
30
 
                          build include files in DIR [DIST_PREFIX/include/nspr]"
31
 
ac_help="$ac_help
32
 
  --with-dist-libdir=DIR  build library files in DIR [DIST_PREFIX/lib]"
33
 
ac_help="$ac_help
34
 
  --with-mozilla          Compile NSPR with Mozilla support"
35
 
ac_help="$ac_help
36
 
  --enable-optimize[=OPT] Enable code optimizations (ie. -O2) "
37
 
ac_help="$ac_help
38
 
  --enable-debug[=DBG]    Enable debugging (using compiler flags DBG)"
39
 
ac_help="$ac_help
40
 
  --enable-debug-symbols[=DBG]    Enable debugging symbols
41
 
                                       (using compiler flags DBG)"
42
 
ac_help="$ac_help
43
 
  --enable-win32-target=\$t
44
 
                          Specify win32 flavor. (WIN95 or WINNT)"
45
 
ac_help="$ac_help
46
 
  --enable-symbian-target=\$t
47
 
                          Specify symbian flavor. (WINSCW or GCCE)"
48
 
ac_help="$ac_help
49
 
  --enable-debug-rtl      Use the MSVC debug runtime library"
50
 
ac_help="$ac_help
51
 
  --enable-n32            Enable n32 ABI support (IRIX only)"
52
 
ac_help="$ac_help
53
 
  --enable-64bit          Enable 64-bit support (on certain platforms)"
54
 
ac_help="$ac_help
55
 
  --enable-mdupdate       Enable use of certain compilers' mdupdate feature"
56
 
ac_help="$ac_help
57
 
  --enable-cplus          Enable some c++ api routines"
58
 
ac_help="$ac_help
59
 
  --with-arm-kuser        Use kuser helpers (Linux/ARM only)
60
 
                          (Requires kernel 2.6.13 or later)"
61
 
ac_help="$ac_help
62
 
  --with-macos-sdk=dir    Location of platform SDK to use (Mac OS X only)"
63
 
ac_help="$ac_help
64
 
  --enable-macos-target=VER
65
 
                          Set the minimum MacOS version needed at runtime
66
 
                          [10.2 for ppc, 10.4 for x86]"
67
 
ac_help="$ac_help
68
 
  --disable-os2-high-mem  Disable high-memory support on OS/2"
69
 
ac_help="$ac_help
70
 
"
71
 
ac_help="$ac_help
72
 
  --with-thumb[[=yes|no|toolchain-default]]
73
 
                          Use Thumb instruction set (-mthumb)"
74
 
ac_help="$ac_help
75
 
  --with-thumb-interwork[[=yes|no|toolchain-default]]
76
 
                           Use Thumb/ARM instuctions interwork (-mthumb-interwork)"
77
 
ac_help="$ac_help
78
 
  --with-arch=[[type|toolchain-default]]
79
 
                           Use specific CPU features (-march=type)"
80
 
ac_help="$ac_help
81
 
  --with-fpu=[[type|toolchain-default]]
82
 
                           Use specific FPU type (-mfpu=type)"
83
 
ac_help="$ac_help
84
 
  --with-float-abi=[[type|toolchain-default]]
85
 
                           Use specific arm float ABI (-mfloat-abi=type)"
86
 
ac_help="$ac_help
87
 
  --with-soft-float[[=yes|no|toolchain-default]]
88
 
                           Use soft float library (-msoft-float)"
89
 
ac_help="$ac_help
90
 
  --with-symbian-sdk=SYMBIAN_SDK_DIR
91
 
                          The path to the Symbian SDK"
92
 
ac_help="$ac_help
93
 
  --with-ccache[=path/to/ccache]
94
 
                          Enable compiling with ccache"
95
 
ac_help="$ac_help
96
 
  --enable-strip          Enable stripping of shared libs and programs"
97
 
ac_help="$ac_help
98
 
  --with-pthreads         Use system pthreads library as thread subsystem"
99
 
ac_help="$ac_help
100
 
  --enable-user-pthreads  Build using userland pthreads"
101
 
ac_help="$ac_help
102
 
  --enable-nspr-threads   Build using classic nspr threads"
103
 
ac_help="$ac_help
104
 
  --with-bthreads         Use system bthreads library as thread subsystem
105
 
                          (BeOS only)"
106
 
ac_help="$ac_help
107
 
  --enable-ipv6           Compile ipv6 support"
108
 
ac_help="$ac_help
109
 
  --enable-wrap-malloc    Wrap malloc calls (gnu linker only)"
110
 
ac_help="$ac_help
111
 
  --with-wrap-malloc=SHAREDLIB  Location of malloc wrapper library"
112
 
 
113
 
# Initialize some variables set by options.
114
 
# The variables have the same names as the options, with
115
 
# dashes changed to underlines.
116
 
build=NONE
117
 
cache_file=./config.cache
118
 
exec_prefix=NONE
119
 
host=NONE
120
 
no_create=
121
 
nonopt=NONE
122
 
no_recursion=
123
 
prefix=NONE
124
 
program_prefix=NONE
125
 
program_suffix=NONE
126
 
program_transform_name=s,x,x,
127
 
silent=
128
 
site=
129
 
srcdir=
130
 
target=NONE
131
 
verbose=
132
 
x_includes=NONE
133
 
x_libraries=NONE
134
 
bindir='${exec_prefix}/bin'
135
 
sbindir='${exec_prefix}/sbin'
136
 
libexecdir='${exec_prefix}/libexec'
137
 
datadir='${prefix}/share'
138
 
sysconfdir='${prefix}/etc'
139
 
sharedstatedir='${prefix}/com'
140
 
localstatedir='${prefix}/var'
141
 
libdir='${exec_prefix}/lib'
142
 
includedir='${prefix}/include'
143
 
oldincludedir='/usr/include'
144
 
infodir='${prefix}/info'
145
 
mandir='${prefix}/man'
146
 
 
147
 
# Initialize some other variables.
148
 
subdirs=
149
 
MFLAGS= MAKEFLAGS=
150
 
SHELL=${CONFIG_SHELL-/bin/sh}
151
 
# Maximum number of lines to put in a shell here document.
152
 
ac_max_here_lines=12
153
 
 
154
 
ac_prev=
155
 
for ac_option
156
 
do
157
 
 
158
 
  # If the previous option needs an argument, assign it.
159
 
  if test -n "$ac_prev"; then
160
 
    eval "$ac_prev=\$ac_option"
161
 
    ac_prev=
162
 
    continue
163
 
  fi
164
 
 
165
 
  case "$ac_option" in
166
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
167
 
  *) ac_optarg= ;;
168
 
  esac
169
 
 
170
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
171
 
 
172
 
  case "$ac_option" in
173
 
 
174
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
175
 
    ac_prev=bindir ;;
176
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177
 
    bindir="$ac_optarg" ;;
178
 
 
179
 
  -build | --build | --buil | --bui | --bu)
180
 
    ac_prev=build ;;
181
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
182
 
    build="$ac_optarg" ;;
183
 
 
184
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
185
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
186
 
    ac_prev=cache_file ;;
187
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
188
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
189
 
    cache_file="$ac_optarg" ;;
190
 
 
191
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
192
 
    ac_prev=datadir ;;
193
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
194
 
  | --da=*)
195
 
    datadir="$ac_optarg" ;;
196
 
 
197
 
  -disable-* | --disable-*)
198
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
199
 
    # Reject names that are not valid shell variable names.
200
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
201
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
202
 
    fi
203
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
204
 
    eval "enable_${ac_feature}=no" ;;
205
 
 
206
 
  -enable-* | --enable-*)
207
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
208
 
    # Reject names that are not valid shell variable names.
209
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
210
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
211
 
    fi
212
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
213
 
    case "$ac_option" in
214
 
      *=*) ;;
215
 
      *) ac_optarg=yes ;;
216
 
    esac
217
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
218
 
 
219
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221
 
  | --exec | --exe | --ex)
222
 
    ac_prev=exec_prefix ;;
223
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225
 
  | --exec=* | --exe=* | --ex=*)
226
 
    exec_prefix="$ac_optarg" ;;
227
 
 
228
 
  -gas | --gas | --ga | --g)
229
 
    # Obsolete; use --with-gas.
230
 
    with_gas=yes ;;
231
 
 
232
 
  -help | --help | --hel | --he)
233
 
    # Omit some internal or obsolete options to make the list less imposing.
234
 
    # This message is too long to be a string in the A/UX 3.1 sh.
235
 
    cat << EOF
236
 
Usage: configure [options] [host]
237
 
Options: [defaults in brackets after descriptions]
238
 
Configuration:
239
 
  --cache-file=FILE       cache test results in FILE
240
 
  --help                  print this message
241
 
  --no-create             do not create output files
242
 
  --quiet, --silent       do not print \`checking...' messages
243
 
  --version               print the version of autoconf that created configure
244
 
Directory and file names:
245
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
246
 
                          [$ac_default_prefix]
247
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
248
 
                          [same as prefix]
249
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
250
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
251
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
252
 
  --datadir=DIR           read-only architecture-independent data in DIR
253
 
                          [PREFIX/share]
254
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
255
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
256
 
                          [PREFIX/com]
257
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
258
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
259
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
260
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
261
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
262
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
263
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
264
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
265
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
266
 
  --program-transform-name=PROGRAM
267
 
                          run sed PROGRAM on installed program names
268
 
EOF
269
 
    cat << EOF
270
 
Host type:
271
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
272
 
  --host=HOST             configure for HOST [guessed]
273
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
274
 
Features and packages:
275
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
276
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
277
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
278
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
279
 
  --x-includes=DIR        X include files are in DIR
280
 
  --x-libraries=DIR       X library files are in DIR
281
 
EOF
282
 
    if test -n "$ac_help"; then
283
 
      echo "--enable and --with options recognized:$ac_help"
284
 
    fi
285
 
    exit 0 ;;
286
 
 
287
 
  -host | --host | --hos | --ho)
288
 
    ac_prev=host ;;
289
 
  -host=* | --host=* | --hos=* | --ho=*)
290
 
    host="$ac_optarg" ;;
291
 
 
292
 
  -includedir | --includedir | --includedi | --included | --include \
293
 
  | --includ | --inclu | --incl | --inc)
294
 
    ac_prev=includedir ;;
295
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
296
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
297
 
    includedir="$ac_optarg" ;;
298
 
 
299
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
300
 
    ac_prev=infodir ;;
301
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
302
 
    infodir="$ac_optarg" ;;
303
 
 
304
 
  -libdir | --libdir | --libdi | --libd)
305
 
    ac_prev=libdir ;;
306
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
307
 
    libdir="$ac_optarg" ;;
308
 
 
309
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
310
 
  | --libexe | --libex | --libe)
311
 
    ac_prev=libexecdir ;;
312
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
313
 
  | --libexe=* | --libex=* | --libe=*)
314
 
    libexecdir="$ac_optarg" ;;
315
 
 
316
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
317
 
  | --localstate | --localstat | --localsta | --localst \
318
 
  | --locals | --local | --loca | --loc | --lo)
319
 
    ac_prev=localstatedir ;;
320
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
321
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
322
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
323
 
    localstatedir="$ac_optarg" ;;
324
 
 
325
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
326
 
    ac_prev=mandir ;;
327
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
328
 
    mandir="$ac_optarg" ;;
329
 
 
330
 
  -nfp | --nfp | --nf)
331
 
    # Obsolete; use --without-fp.
332
 
    with_fp=no ;;
333
 
 
334
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
335
 
  | --no-cr | --no-c)
336
 
    no_create=yes ;;
337
 
 
338
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
339
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
340
 
    no_recursion=yes ;;
341
 
 
342
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
343
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
344
 
  | --oldin | --oldi | --old | --ol | --o)
345
 
    ac_prev=oldincludedir ;;
346
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
347
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
348
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
349
 
    oldincludedir="$ac_optarg" ;;
350
 
 
351
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
352
 
    ac_prev=prefix ;;
353
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
354
 
    prefix="$ac_optarg" ;;
355
 
 
356
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
357
 
  | --program-pre | --program-pr | --program-p)
358
 
    ac_prev=program_prefix ;;
359
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
360
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
361
 
    program_prefix="$ac_optarg" ;;
362
 
 
363
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
364
 
  | --program-suf | --program-su | --program-s)
365
 
    ac_prev=program_suffix ;;
366
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
367
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
368
 
    program_suffix="$ac_optarg" ;;
369
 
 
370
 
  -program-transform-name | --program-transform-name \
371
 
  | --program-transform-nam | --program-transform-na \
372
 
  | --program-transform-n | --program-transform- \
373
 
  | --program-transform | --program-transfor \
374
 
  | --program-transfo | --program-transf \
375
 
  | --program-trans | --program-tran \
376
 
  | --progr-tra | --program-tr | --program-t)
377
 
    ac_prev=program_transform_name ;;
378
 
  -program-transform-name=* | --program-transform-name=* \
379
 
  | --program-transform-nam=* | --program-transform-na=* \
380
 
  | --program-transform-n=* | --program-transform-=* \
381
 
  | --program-transform=* | --program-transfor=* \
382
 
  | --program-transfo=* | --program-transf=* \
383
 
  | --program-trans=* | --program-tran=* \
384
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
385
 
    program_transform_name="$ac_optarg" ;;
386
 
 
387
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
388
 
  | -silent | --silent | --silen | --sile | --sil)
389
 
    silent=yes ;;
390
 
 
391
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
392
 
    ac_prev=sbindir ;;
393
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
394
 
  | --sbi=* | --sb=*)
395
 
    sbindir="$ac_optarg" ;;
396
 
 
397
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
398
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
399
 
  | --sharedst | --shareds | --shared | --share | --shar \
400
 
  | --sha | --sh)
401
 
    ac_prev=sharedstatedir ;;
402
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
403
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
404
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
405
 
  | --sha=* | --sh=*)
406
 
    sharedstatedir="$ac_optarg" ;;
407
 
 
408
 
  -site | --site | --sit)
409
 
    ac_prev=site ;;
410
 
  -site=* | --site=* | --sit=*)
411
 
    site="$ac_optarg" ;;
412
 
 
413
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
414
 
    ac_prev=srcdir ;;
415
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
416
 
    srcdir="$ac_optarg" ;;
417
 
 
418
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
419
 
  | --syscon | --sysco | --sysc | --sys | --sy)
420
 
    ac_prev=sysconfdir ;;
421
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
422
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
423
 
    sysconfdir="$ac_optarg" ;;
424
 
 
425
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
426
 
    ac_prev=target ;;
427
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
428
 
    target="$ac_optarg" ;;
429
 
 
430
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
431
 
    verbose=yes ;;
432
 
 
433
 
  -version | --version | --versio | --versi | --vers)
434
 
    echo "configure generated by autoconf version 2.13"
435
 
    exit 0 ;;
436
 
 
437
 
  -with-* | --with-*)
438
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
439
 
    # Reject names that are not valid shell variable names.
440
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
441
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
442
 
    fi
443
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
444
 
    case "$ac_option" in
445
 
      *=*) ;;
446
 
      *) ac_optarg=yes ;;
447
 
    esac
448
 
    eval "with_${ac_package}='$ac_optarg'" ;;
449
 
 
450
 
  -without-* | --without-*)
451
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
452
 
    # Reject names that are not valid shell variable names.
453
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
454
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
455
 
    fi
456
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
457
 
    eval "with_${ac_package}=no" ;;
458
 
 
459
 
  --x)
460
 
    # Obsolete; use --with-x.
461
 
    with_x=yes ;;
462
 
 
463
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
464
 
  | --x-incl | --x-inc | --x-in | --x-i)
465
 
    ac_prev=x_includes ;;
466
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
467
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
468
 
    x_includes="$ac_optarg" ;;
469
 
 
470
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
471
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
472
 
    ac_prev=x_libraries ;;
473
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
474
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
475
 
    x_libraries="$ac_optarg" ;;
476
 
 
477
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
478
 
    ;;
479
 
 
480
 
  *)
481
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
482
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
483
 
    fi
484
 
    if test "x$nonopt" != xNONE; then
485
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
486
 
    fi
487
 
    nonopt="$ac_option"
488
 
    ;;
489
 
 
490
 
  esac
491
 
done
492
 
 
493
 
if test -n "$ac_prev"; then
494
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
495
 
fi
496
 
 
497
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
498
 
 
499
 
# File descriptor usage:
500
 
# 0 standard input
501
 
# 1 file creation
502
 
# 2 errors and warnings
503
 
# 3 some systems may open it to /dev/tty
504
 
# 4 used on the Kubota Titan
505
 
# 6 checking for... messages and results
506
 
# 5 compiler messages saved in config.log
507
 
if test "$silent" = yes; then
508
 
  exec 6>/dev/null
509
 
else
510
 
  exec 6>&1
511
 
fi
512
 
exec 5>./config.log
513
 
 
514
 
echo "\
515
 
This file contains any messages produced by compilers while
516
 
running configure, to aid debugging if configure makes a mistake.
517
 
" 1>&5
518
 
 
519
 
# Strip out --no-create and --no-recursion so they do not pile up.
520
 
# Also quote any args containing shell metacharacters.
521
 
ac_configure_args=
522
 
for ac_arg
523
 
do
524
 
  case "$ac_arg" in
525
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
526
 
  | --no-cr | --no-c) ;;
527
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
528
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
529
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
530
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
531
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
532
 
  esac
533
 
done
534
 
 
535
 
# NLS nuisances.
536
 
# Only set these to C if already set.  These must not be set unconditionally
537
 
# because not all systems understand e.g. LANG=C (notably SCO).
538
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
539
 
# Non-C LC_CTYPE values break the ctype check.
540
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
541
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
542
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
543
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
544
 
 
545
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
546
 
rm -rf conftest* confdefs.h
547
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
548
 
echo > confdefs.h
549
 
 
550
 
# A filename unique to this package, relative to the directory that
551
 
# configure is in, which we can look for to find out if srcdir is correct.
552
 
ac_unique_file=config/libc_r.h
553
 
 
554
 
# Find the source files, if location was not specified.
555
 
if test -z "$srcdir"; then
556
 
  ac_srcdir_defaulted=yes
557
 
  # Try the directory containing this script, then its parent.
558
 
  ac_prog=$0
559
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
560
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
561
 
  srcdir=$ac_confdir
562
 
  if test ! -r $srcdir/$ac_unique_file; then
563
 
    srcdir=..
564
 
  fi
565
 
else
566
 
  ac_srcdir_defaulted=no
567
 
fi
568
 
if test ! -r $srcdir/$ac_unique_file; then
569
 
  if test "$ac_srcdir_defaulted" = yes; then
570
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
571
 
  else
572
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
573
 
  fi
574
 
fi
575
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
576
 
 
577
 
# Prefer explicitly selected file to automatically selected ones.
578
 
if test -z "$CONFIG_SITE"; then
579
 
  if test "x$prefix" != xNONE; then
580
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
581
 
  else
582
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
583
 
  fi
584
 
fi
585
 
for ac_site_file in $CONFIG_SITE; do
586
 
  if test -r "$ac_site_file"; then
587
 
    echo "loading site script $ac_site_file"
588
 
    . "$ac_site_file"
589
 
  fi
590
 
done
591
 
 
592
 
if test -r "$cache_file"; then
593
 
  echo "loading cache $cache_file"
594
 
  . $cache_file
595
 
else
596
 
  echo "creating cache $cache_file"
597
 
  > $cache_file
598
 
fi
599
 
 
600
 
ac_ext=c
601
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
602
 
ac_cpp='$CPP $CPPFLAGS'
603
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
604
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
605
 
cross_compiling=$ac_cv_prog_cc_cross
606
 
 
607
 
ac_exeext=
608
 
ac_objext=o
609
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
610
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
611
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
612
 
    ac_n= ac_c='
613
 
' ac_t='        '
614
 
  else
615
 
    ac_n=-n ac_c= ac_t=
616
 
  fi
617
 
else
618
 
  ac_n= ac_c='\c' ac_t=
619
 
fi
620
 
 
621
 
 
622
 
 
623
 
ac_aux_dir=
624
 
for ac_dir in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf; do
625
 
  if test -f $ac_dir/install-sh; then
626
 
    ac_aux_dir=$ac_dir
627
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
628
 
    break
629
 
  elif test -f $ac_dir/install.sh; then
630
 
    ac_aux_dir=$ac_dir
631
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
632
 
    break
633
 
  fi
634
 
done
635
 
if test -z "$ac_aux_dir"; then
636
 
  { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&2; exit 1; }
637
 
fi
638
 
ac_config_guess=$ac_aux_dir/config.guess
639
 
ac_config_sub=$ac_aux_dir/config.sub
640
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
641
 
 
642
 
 
643
 
# Do some error checking and defaulting for the host and target type.
644
 
# The inputs are:
645
 
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
646
 
#
647
 
# The rules are:
648
 
# 1. You are not allowed to specify --host, --target, and nonopt at the
649
 
#    same time.
650
 
# 2. Host defaults to nonopt.
651
 
# 3. If nonopt is not specified, then host defaults to the current host,
652
 
#    as determined by config.guess.
653
 
# 4. Target and build default to nonopt.
654
 
# 5. If nonopt is not specified, then target and build default to host.
655
 
 
656
 
# The aliases save the names the user supplied, while $host etc.
657
 
# will get canonicalized.
658
 
case $host---$target---$nonopt in
659
 
NONE---*---* | *---NONE---* | *---*---NONE) ;;
660
 
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
661
 
esac
662
 
 
663
 
 
664
 
# Make sure we can run config.sub.
665
 
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
666
 
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
667
 
fi
668
 
 
669
 
echo $ac_n "checking host system type""... $ac_c" 1>&6
670
 
echo "configure:671: checking host system type" >&5
671
 
 
672
 
host_alias=$host
673
 
case "$host_alias" in
674
 
NONE)
675
 
  case $nonopt in
676
 
  NONE)
677
 
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
678
 
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
679
 
    fi ;;
680
 
  *) host_alias=$nonopt ;;
681
 
  esac ;;
682
 
esac
683
 
 
684
 
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
685
 
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686
 
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687
 
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688
 
echo "$ac_t""$host" 1>&6
689
 
 
690
 
echo $ac_n "checking target system type""... $ac_c" 1>&6
691
 
echo "configure:692: checking target system type" >&5
692
 
 
693
 
target_alias=$target
694
 
case "$target_alias" in
695
 
NONE)
696
 
  case $nonopt in
697
 
  NONE) target_alias=$host_alias ;;
698
 
  *) target_alias=$nonopt ;;
699
 
  esac ;;
700
 
esac
701
 
 
702
 
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
703
 
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
704
 
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
705
 
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706
 
echo "$ac_t""$target" 1>&6
707
 
 
708
 
echo $ac_n "checking build system type""... $ac_c" 1>&6
709
 
echo "configure:710: checking build system type" >&5
710
 
 
711
 
build_alias=$build
712
 
case "$build_alias" in
713
 
NONE)
714
 
  case $nonopt in
715
 
  NONE) build_alias=$host_alias ;;
716
 
  *) build_alias=$nonopt ;;
717
 
  esac ;;
718
 
esac
719
 
 
720
 
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
721
 
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722
 
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723
 
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724
 
echo "$ac_t""$build" 1>&6
725
 
 
726
 
test "$host_alias" != "$target_alias" &&
727
 
  test "$program_prefix$program_suffix$program_transform_name" = \
728
 
    NONENONEs,x,x, &&
729
 
  program_prefix=${target_alias}-
730
 
 
731
 
 
732
 
MOD_MAJOR_VERSION=4
733
 
MOD_MINOR_VERSION=8
734
 
MOD_PATCH_VERSION=9
735
 
NSPR_MODNAME=nspr20
736
 
_HAVE_PTHREADS=
737
 
USE_PTHREADS=
738
 
USE_USER_PTHREADS=
739
 
USE_NSPR_THREADS=
740
 
USE_N32=
741
 
USE_64=
742
 
USE_CPLUS=
743
 
USE_IPV6=
744
 
USE_MDUPDATE=
745
 
_MACOSX_DEPLOYMENT_TARGET=
746
 
_OPTIMIZE_FLAGS=-O
747
 
_DEBUG_FLAGS=-g
748
 
MOZ_DEBUG=1
749
 
MOZ_OPTIMIZE=
750
 
OBJDIR='$(OBJDIR_NAME)'
751
 
OBJDIR_NAME=.
752
 
OBJDIR_SUFFIX=OBJ
753
 
NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
754
 
NOSUCHFILE=/no-such-file
755
 
LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
756
 
LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
757
 
CYGWIN_WRAPPER=
758
 
MACOS_SDK_DIR=
759
 
NEXT_ROOT=
760
 
MT=
761
 
MOZ_OS2_HIGH_MEMORY=1
762
 
PROFILE_GEN_CFLAGS=
763
 
PROFILE_GEN_LDFLAGS=
764
 
PROFILE_USE_CFLAGS=
765
 
PROFILE_USE_LDFLAGS=
766
 
 
767
 
RESOLVE_LINK_SYMBOLS=
768
 
 
769
 
CFLAGS="${CFLAGS=}"
770
 
CXXFLAGS="${CXXFLAGS=}"
771
 
LDFLAGS="${LDFLAGS=}"
772
 
DLLFLAGS="${DLLFLAGS=}"
773
 
HOST_CFLAGS="${HOST_CFLAGS=}"
774
 
HOST_LDFLAGS="${HOST_LDFLAGS=}"
775
 
 
776
 
case "$target" in
777
 
*-cygwin*|*-mingw*)
778
 
    # Check to see if we are really running in a msvc environemnt
779
 
    _WIN32_MSVC=
780
 
    for ac_prog in cl
781
 
do
782
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
783
 
set dummy $ac_prog; ac_word=$2
784
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
785
 
echo "configure:786: checking for $ac_word" >&5
786
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
787
 
  echo $ac_n "(cached) $ac_c" 1>&6
788
 
else
789
 
  if test -n "$CC"; then
790
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
791
 
else
792
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
793
 
  ac_dummy="$PATH"
794
 
  for ac_dir in $ac_dummy; do
795
 
    test -z "$ac_dir" && ac_dir=.
796
 
    if test -f $ac_dir/$ac_word; then
797
 
      ac_cv_prog_CC="$ac_prog"
798
 
      break
799
 
    fi
800
 
  done
801
 
  IFS="$ac_save_ifs"
802
 
fi
803
 
fi
804
 
CC="$ac_cv_prog_CC"
805
 
if test -n "$CC"; then
806
 
  echo "$ac_t""$CC" 1>&6
807
 
else
808
 
  echo "$ac_t""no" 1>&6
809
 
fi
810
 
 
811
 
test -n "$CC" && break
812
 
done
813
 
 
814
 
    if test "$CC" = "cl"; then
815
 
        echo 'main() { return 0; }' > dummy.c
816
 
        ${CC} -o dummy dummy.c >/dev/null 2>&1
817
 
        if test $? = 0; then
818
 
            _WIN32_MSVC=1
819
 
            CXX=$CC
820
 
        else
821
 
            echo "configure: warning: $(CC) test failed.  Using normal feature tests" 1>&2
822
 
        fi
823
 
        rm -f dummy dummy.o dummy.obj dummy.exe dummy.c
824
 
    fi
825
 
    ;;
826
 
*-msvc*)
827
 
    _WIN32_MSVC=1
828
 
    ;;
829
 
*-mks*)
830
 
    _WIN32_MSVC=1
831
 
    ;;
832
 
esac
833
 
 
834
 
if test -n "$_WIN32_MSVC"; then
835
 
    SKIP_PATH_CHECKS=1
836
 
    SKIP_COMPILER_CHECKS=1
837
 
    SKIP_LIBRARY_CHECKS=1
838
 
fi
839
 
 
840
 
 
841
 
# Check whether --with-android-ndk or --without-android-ndk was given.
842
 
if test "${with_android_ndk+set}" = set; then
843
 
  withval="$with_android_ndk"
844
 
  android_ndk=$withval
845
 
fi
846
 
 
847
 
 
848
 
# Check whether --with-android-toolchain or --without-android-toolchain was given.
849
 
if test "${with_android_toolchain+set}" = set; then
850
 
  withval="$with_android_toolchain"
851
 
  android_toolchain=$withval
852
 
fi
853
 
 
854
 
 
855
 
# Check whether --with-android-platform or --without-android-platform was given.
856
 
if test "${with_android_platform+set}" = set; then
857
 
  withval="$with_android_platform"
858
 
  android_platform=$withval
859
 
fi
860
 
 
861
 
 
862
 
case "$target" in
863
 
arm-linux*-android*|*-linuxandroid*)
864
 
    android_tool_prefix="arm-linux-androideabi"
865
 
    ;;
866
 
arm-android-eabi)
867
 
    android_tool_prefix="arm-eabi"
868
 
    ;;
869
 
*)
870
 
    android_tool_prefix="$target_os"
871
 
    ;;
872
 
esac
873
 
 
874
 
case "$target" in
875
 
*-android*|*-linuxandroid*)
876
 
    if test -z "$android_ndk" ; then
877
 
       { echo "configure: error: You must specify --with-android-ndk=/path/to/ndk when targeting Android." 1>&2; exit 1; }
878
 
    fi
879
 
 
880
 
    if test -z "$android_toolchain" ; then
881
 
       android_toolchain="$android_ndk"/build/prebuilt/`uname -s | tr "[:upper:]" "[:lower:]"`-x86/arm-eabi-4.4.0
882
 
    fi
883
 
 
884
 
    if test -z "$android_platform" ; then
885
 
       android_platform="$android_ndk"/build/platforms/android-5/arch-arm
886
 
    fi
887
 
 
888
 
        AS="$android_toolchain"/bin/"$android_tool_prefix"-as
889
 
    CC="$android_toolchain"/bin/"$android_tool_prefix"-gcc
890
 
    CXX="$android_toolchain"/bin/"$android_tool_prefix"-g++
891
 
    CPP="$android_toolchain"/bin/"$android_tool_prefix"-cpp
892
 
    LD="$android_toolchain"/bin/"$android_tool_prefix"-ld
893
 
    AR="$android_toolchain"/bin/"$android_tool_prefix"-ar
894
 
    RANLIB="$android_toolchain"/bin/"$android_tool_prefix"-ranlib
895
 
    STRIP="$android_toolchain"/bin/"$android_tool_prefix"-strip
896
 
 
897
 
    CPPFLAGS="-I$android_platform/usr/include $CPPFLAGS"
898
 
    CFLAGS="-mandroid -I$android_platform/usr/include -msoft-float -fno-short-enums -fno-exceptions $CFLAGS"
899
 
    CXXFLAGS="-mandroid -I$android_platform/usr/include -msoft-float -fpic -fno-short-enums -fno-exceptions $CXXFLAGS"
900
 
    LDFLAGS="-mandroid -L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform $LDFLAGS"
901
 
 
902
 
        if test -z "$HOST_CPPFLAGS" ; then
903
 
        HOST_CPPFLAGS=" "
904
 
    fi
905
 
    if test -z "$HOST_CFLAGS" ; then
906
 
        HOST_CFLAGS=" "
907
 
    fi
908
 
    if test -z "$HOST_CXXFLAGS" ; then
909
 
        HOST_CXXFLAGS=" "
910
 
    fi
911
 
    if test -z "$HOST_LDFLAGS" ; then
912
 
        HOST_LDFLAGS=" "
913
 
    fi
914
 
 
915
 
    WRAP_MALLOC_CFLAGS="-Wl,--wrap=dlopen -Wl,--wrap=dlclose -Wl,--wrap=dlerror -Wl,--wrap=dlsym -Wl,--wrap=dladdr"
916
 
 
917
 
    cat >> confdefs.h <<\EOF
918
 
#define ANDROID 1
919
 
EOF
920
 
 
921
 
    ;;
922
 
esac
923
 
 
924
 
dist_prefix='${MOD_DEPTH}/dist'
925
 
dist_bindir='${dist_prefix}/bin'
926
 
dist_includedir='${dist_prefix}/include/nspr'
927
 
dist_libdir='${dist_prefix}/lib'
928
 
if test "${includedir}" = '${prefix}/include'; then
929
 
    includedir='${prefix}/include/nspr'
930
 
fi
931
 
 
932
 
# Check whether --with-dist-prefix or --without-dist-prefix was given.
933
 
if test "${with_dist_prefix+set}" = set; then
934
 
  withval="$with_dist_prefix"
935
 
  dist_prefix=$withval
936
 
fi
937
 
 
938
 
 
939
 
# Check whether --with-dist-bindir or --without-dist-bindir was given.
940
 
if test "${with_dist_bindir+set}" = set; then
941
 
  withval="$with_dist_bindir"
942
 
  dist_bindir=$withval
943
 
fi
944
 
 
945
 
 
946
 
# Check whether --with-dist-includedir or --without-dist-includedir was given.
947
 
if test "${with_dist_includedir+set}" = set; then
948
 
  withval="$with_dist_includedir"
949
 
  dist_includedir=$withval
950
 
fi
951
 
 
952
 
 
953
 
# Check whether --with-dist-libdir or --without-dist-libdir was given.
954
 
if test "${with_dist_libdir+set}" = set; then
955
 
  withval="$with_dist_libdir"
956
 
  dist_libdir=$withval
957
 
fi
958
 
 
959
 
 
960
 
 
961
 
 
962
 
 
963
 
 
964
 
 
965
 
# Check whether --with-mozilla or --without-mozilla was given.
966
 
if test "${with_mozilla+set}" = set; then
967
 
  withval="$with_mozilla"
968
 
     if test "$withval" = "yes"; then
969
 
            cat >> confdefs.h <<\EOF
970
 
#define MOZILLA_CLIENT 1
971
 
EOF
972
 
 
973
 
            MOZILLA_CLIENT=1
974
 
            else
975
 
                MOZILLA_CLIENT=
976
 
            fi
977
 
else
978
 
        if test -n "$MOZILLA_CLIENT"; then
979
 
                cat >> confdefs.h <<\EOF
980
 
#define MOZILLA_CLIENT 1
981
 
EOF
982
 
 
983
 
            fi
984
 
fi
985
 
 
986
 
 
987
 
# Check whether --enable-optimize or --disable-optimize was given.
988
 
if test "${enable_optimize+set}" = set; then
989
 
  enableval="$enable_optimize"
990
 
   if test "$enableval" != "no"; then
991
 
          MOZ_OPTIMIZE=1
992
 
          if test -n "$enableval" -a "$enableval" != "yes"; then
993
 
            _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
994
 
            _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS
995
 
          fi
996
 
      else
997
 
          MOZ_OPTIMIZE=
998
 
      fi 
999
 
fi
1000
 
 
1001
 
 
1002
 
# Check whether --enable-debug or --disable-debug was given.
1003
 
if test "${enable_debug+set}" = set; then
1004
 
  enableval="$enable_debug"
1005
 
   if test "$enableval" != "no"; then
1006
 
          MOZ_DEBUG=1
1007
 
          MOZ_DEBUG_SYMBOLS=1
1008
 
          if test -n "$enableval" -a "$enableval" != "yes"; then
1009
 
              _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
1010
 
              _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS
1011
 
          fi
1012
 
      else
1013
 
          MOZ_DEBUG=
1014
 
      fi 
1015
 
else
1016
 
  MOZ_DEBUG_SYMBOLS=1
1017
 
fi
1018
 
 
1019
 
 
1020
 
# Check whether --enable-debug-symbols or --disable-debug-symbols was given.
1021
 
if test "${enable_debug_symbols+set}" = set; then
1022
 
  enableval="$enable_debug_symbols"
1023
 
   if test "$enableval" != "no"; then
1024
 
          MOZ_DEBUG_SYMBOLS=1
1025
 
          if test -n "$enableval" -a "$enableval" != "yes"; then
1026
 
              if test -z "$_SAVE_DEBUG_FLAGS"; then
1027
 
                  _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
1028
 
                  _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS
1029
 
              else
1030
 
                  { echo "configure: error: --enable-debug-symbols flags cannot be used with --enable-debug flags" 1>&2; exit 1; }
1031
 
              fi
1032
 
          fi
1033
 
      else
1034
 
          MOZ_DEBUG_SYMBOLS=
1035
 
      fi 
1036
 
fi
1037
 
 
1038
 
 
1039
 
# Check whether --enable-win32-target or --disable-win32-target was given.
1040
 
if test "${enable_win32_target+set}" = set; then
1041
 
  enableval="$enable_win32_target"
1042
 
  OS_TARGET=`echo $enableval | tr a-z A-Z`
1043
 
fi
1044
 
 
1045
 
 
1046
 
# Check whether --enable-symbian-target or --disable-symbian-target was given.
1047
 
if test "${enable_symbian_target+set}" = set; then
1048
 
  enableval="$enable_symbian_target"
1049
 
  OS_TARGET=`echo $enableval | tr a-z A-Z`
1050
 
fi
1051
 
 
1052
 
 
1053
 
# Check whether --enable-debug-rtl or --disable-debug-rtl was given.
1054
 
if test "${enable_debug_rtl+set}" = set; then
1055
 
  enableval="$enable_debug_rtl"
1056
 
   if test "$enableval" = "yes"; then
1057
 
            USE_DEBUG_RTL=1
1058
 
      fi 
1059
 
fi
1060
 
 
1061
 
 
1062
 
# Check whether --enable-n32 or --disable-n32 was given.
1063
 
if test "${enable_n32+set}" = set; then
1064
 
  enableval="$enable_n32"
1065
 
   if test "$enableval" = "yes"; then
1066
 
        USE_N32=1
1067
 
      else if test "$enableval" = "no"; then
1068
 
        USE_N32=
1069
 
      fi
1070
 
    fi 
1071
 
fi
1072
 
 
1073
 
 
1074
 
# Check whether --enable-64bit or --disable-64bit was given.
1075
 
if test "${enable_64bit+set}" = set; then
1076
 
  enableval="$enable_64bit"
1077
 
   if test "$enableval" = "yes"; then
1078
 
            USE_64=1
1079
 
      fi 
1080
 
fi
1081
 
 
1082
 
 
1083
 
# Check whether --enable-mdupdate or --disable-mdupdate was given.
1084
 
if test "${enable_mdupdate+set}" = set; then
1085
 
  enableval="$enable_mdupdate"
1086
 
   if test "$enableval" = "yes"; then
1087
 
            USE_MDUPDATE=1
1088
 
      fi 
1089
 
fi
1090
 
 
1091
 
 
1092
 
# Check whether --enable-cplus or --disable-cplus was given.
1093
 
if test "${enable_cplus+set}" = set; then
1094
 
  enableval="$enable_cplus"
1095
 
   if test "$enableval" = "yes"; then
1096
 
            USE_CPLUS=1
1097
 
      fi
1098
 
fi
1099
 
 
1100
 
 
1101
 
# Check whether --with-arm-kuser or --without-arm-kuser was given.
1102
 
if test "${with_arm_kuser+set}" = set; then
1103
 
  withval="$with_arm_kuser"
1104
 
   if test "$withval" = "yes"; then
1105
 
            cat >> confdefs.h <<\EOF
1106
 
#define _PR_ARM_KUSER 1
1107
 
EOF
1108
 
 
1109
 
      fi 
1110
 
fi
1111
 
 
1112
 
 
1113
 
# Check whether --with-macos-sdk or --without-macos-sdk was given.
1114
 
if test "${with_macos_sdk+set}" = set; then
1115
 
  withval="$with_macos_sdk"
1116
 
  MACOS_SDK_DIR=$withval
1117
 
fi
1118
 
 
1119
 
 
1120
 
# Check whether --enable-macos-target or --disable-macos-target was given.
1121
 
if test "${enable_macos_target+set}" = set; then
1122
 
  enableval="$enable_macos_target"
1123
 
  _MACOSX_DEPLOYMENT_TARGET=$enableval
1124
 
fi
1125
 
 
1126
 
 
1127
 
case "$target" in
1128
 
 
1129
 
*-aix*)
1130
 
    case "${target_os}" in
1131
 
    aix3.2*)
1132
 
        USE_NSPR_THREADS=1
1133
 
        ;;
1134
 
    *)
1135
 
        USE_PTHREADS=1
1136
 
        ;;
1137
 
    esac
1138
 
    ;;
1139
 
 
1140
 
esac
1141
 
 
1142
 
if test -z "$CC"; then
1143
 
    case "$target" in
1144
 
 
1145
 
    *-aix*)
1146
 
        if test -z "$USE_NSPR_THREADS"; then
1147
 
            CC=xlc_r
1148
 
        else
1149
 
            CC=xlc
1150
 
        fi
1151
 
    ;;
1152
 
 
1153
 
    *-hpux*)
1154
 
        CC=cc
1155
 
    ;;
1156
 
 
1157
 
    *-irix*)
1158
 
        CC=cc
1159
 
    ;;
1160
 
 
1161
 
    *-osf*)
1162
 
        CC=cc
1163
 
    ;;
1164
 
 
1165
 
    *-solaris*)
1166
 
        CC=cc
1167
 
    ;;
1168
 
 
1169
 
    esac
1170
 
fi
1171
 
 
1172
 
if test -z "$CXX"; then
1173
 
    case "$target" in
1174
 
 
1175
 
    *-aix*)
1176
 
        if test -z "$USE_NSPR_THREADS"; then
1177
 
            CXX=xlC_r
1178
 
        else
1179
 
            CXX=xlC
1180
 
        fi
1181
 
    ;;
1182
 
 
1183
 
    *-hpux*)
1184
 
        case "${target_os}" in
1185
 
        hpux10.30)
1186
 
            CXX=aCC
1187
 
            ;;
1188
 
        hpux11.*)
1189
 
            CXX=aCC
1190
 
            ;;
1191
 
        *)
1192
 
            CXX=CC
1193
 
            ;;
1194
 
        esac
1195
 
    ;;
1196
 
 
1197
 
    *-irix*)
1198
 
        CXX=CC
1199
 
    ;;
1200
 
 
1201
 
    *-osf*)
1202
 
        CXX=cxx
1203
 
    ;;
1204
 
 
1205
 
    *-solaris*)
1206
 
        CXX=CC
1207
 
    ;;
1208
 
 
1209
 
    esac
1210
 
fi
1211
 
 
1212
 
if test -z "$SKIP_PATH_CHECKS"; then
1213
 
    # Extract the first word of "$WHOAMI whoami", so it can be a program name with args.
1214
 
set dummy $WHOAMI whoami; ac_word=$2
1215
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216
 
echo "configure:1217: checking for $ac_word" >&5
1217
 
if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
1218
 
  echo $ac_n "(cached) $ac_c" 1>&6
1219
 
else
1220
 
  case "$WHOAMI" in
1221
 
  /*)
1222
 
  ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
1223
 
  ;;
1224
 
  ?:/*)                  
1225
 
  ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path.
1226
 
  ;;
1227
 
  *)
1228
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1229
 
  ac_dummy="$PATH"
1230
 
  for ac_dir in $ac_dummy; do 
1231
 
    test -z "$ac_dir" && ac_dir=.
1232
 
    if test -f $ac_dir/$ac_word; then
1233
 
      ac_cv_path_WHOAMI="$ac_dir/$ac_word"
1234
 
      break
1235
 
    fi
1236
 
  done
1237
 
  IFS="$ac_save_ifs"
1238
 
  test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami"
1239
 
  ;;
1240
 
esac
1241
 
fi
1242
 
WHOAMI="$ac_cv_path_WHOAMI"
1243
 
if test -n "$WHOAMI"; then
1244
 
  echo "$ac_t""$WHOAMI" 1>&6
1245
 
else
1246
 
  echo "$ac_t""no" 1>&6
1247
 
fi
1248
 
 
1249
 
fi
1250
 
 
1251
 
if test -n "$MOZ_DEBUG"; then
1252
 
    cat >> confdefs.h <<\EOF
1253
 
#define DEBUG 1
1254
 
EOF
1255
 
 
1256
 
    DEFINES="$DEFINES -UNDEBUG"
1257
 
 
1258
 
    case "${target_os}" in
1259
 
    beos*)
1260
 
        DEFINES="$DEFINES -DDEBUG_${USER}"
1261
 
        ;;
1262
 
    msvc*|mks*|cygwin*|mingw*|wince*|winmo*|os2*)
1263
 
        DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`"
1264
 
        ;;
1265
 
    *) 
1266
 
        DEFINES="$DEFINES -DDEBUG_`$WHOAMI`"
1267
 
        ;;
1268
 
    esac
1269
 
else
1270
 
    cat >> confdefs.h <<\EOF
1271
 
#define NDEBUG 1
1272
 
EOF
1273
 
 
1274
 
    DEFINES="$DEFINES -UDEBUG"
1275
 
fi
1276
 
 
1277
 
if test -z "$SKIP_COMPILER_CHECKS"; then
1278
 
if test "$target" != "$host"; then
1279
 
    echo "cross compiling from $host to $target"
1280
 
    cross_compiling=yes
1281
 
 
1282
 
    _SAVE_CC="$CC"
1283
 
    _SAVE_CFLAGS="$CFLAGS"
1284
 
    _SAVE_LDFLAGS="$LDFLAGS"
1285
 
 
1286
 
    echo $ac_n "checking for $host compiler""... $ac_c" 1>&6
1287
 
echo "configure:1288: checking for $host compiler" >&5
1288
 
    for ac_prog in $HOST_CC gcc cc /usr/ucb/cc
1289
 
do
1290
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1291
 
set dummy $ac_prog; ac_word=$2
1292
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1293
 
echo "configure:1294: checking for $ac_word" >&5
1294
 
if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
1295
 
  echo $ac_n "(cached) $ac_c" 1>&6
1296
 
else
1297
 
  if test -n "$HOST_CC"; then
1298
 
  ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test.
1299
 
else
1300
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1301
 
  ac_dummy="$PATH"
1302
 
  for ac_dir in $ac_dummy; do
1303
 
    test -z "$ac_dir" && ac_dir=.
1304
 
    if test -f $ac_dir/$ac_word; then
1305
 
      ac_cv_prog_HOST_CC="$ac_prog"
1306
 
      break
1307
 
    fi
1308
 
  done
1309
 
  IFS="$ac_save_ifs"
1310
 
fi
1311
 
fi
1312
 
HOST_CC="$ac_cv_prog_HOST_CC"
1313
 
if test -n "$HOST_CC"; then
1314
 
  echo "$ac_t""$HOST_CC" 1>&6
1315
 
else
1316
 
  echo "$ac_t""no" 1>&6
1317
 
fi
1318
 
 
1319
 
test -n "$HOST_CC" && break
1320
 
done
1321
 
test -n "$HOST_CC" || HOST_CC=""""
1322
 
 
1323
 
    if test -z "$HOST_CC"; then
1324
 
        { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1325
 
    fi
1326
 
    echo "$ac_t""$HOST_CC" 1>&6
1327
 
    if test -z "$HOST_CFLAGS"; then
1328
 
        HOST_CFLAGS="$CFLAGS"
1329
 
    fi
1330
 
    if test -z "$HOST_LDFLAGS"; then
1331
 
        HOST_LDFLAGS="$LDFLAGS"
1332
 
    fi
1333
 
 
1334
 
    CC="$HOST_CC"
1335
 
    CFLAGS="$HOST_CFLAGS"
1336
 
    LDFLAGS="$HOST_LDFLAGS"
1337
 
 
1338
 
    echo $ac_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
1339
 
echo "configure:1340: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
1340
 
    cat > conftest.$ac_ext <<EOF
1341
 
#line 1342 "configure"
1342
 
#include "confdefs.h"
1343
 
 
1344
 
int main() {
1345
 
return(0);
1346
 
; return 0; }
1347
 
EOF
1348
 
if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1349
 
  rm -rf conftest*
1350
 
  ac_cv_prog_host_cc_works=1 echo "$ac_t""yes" 1>&6
1351
 
else
1352
 
  echo "configure: failed program was:" >&5
1353
 
  cat conftest.$ac_ext >&5
1354
 
  rm -rf conftest*
1355
 
  { echo "configure: error: installation or configuration problem: $host compiler $HOST_CC cannot create executables." 1>&2; exit 1; } 
1356
 
fi
1357
 
rm -f conftest*
1358
 
 
1359
 
    CC=$_SAVE_CC
1360
 
    CFLAGS=$_SAVE_CFLAGS
1361
 
    LDFLAGS=$_SAVE_LDFLAGS
1362
 
 
1363
 
    case "$build:$target" in 
1364
 
      powerpc-apple-darwin8*:i?86-apple-darwin*)
1365
 
                                                _SAVE_CFLAGS=$CFLAGS 
1366
 
        _SAVE_CXXFLAGS=$CXXLAGS
1367
 
        CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS"
1368
 
        CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS"
1369
 
        ;;        
1370
 
    esac            
1371
 
 
1372
 
    for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc"
1373
 
do
1374
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1375
 
set dummy $ac_prog; ac_word=$2
1376
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1377
 
echo "configure:1378: checking for $ac_word" >&5
1378
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1379
 
  echo $ac_n "(cached) $ac_c" 1>&6
1380
 
else
1381
 
  if test -n "$CC"; then
1382
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1383
 
else
1384
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1385
 
  ac_dummy="$PATH"
1386
 
  for ac_dir in $ac_dummy; do
1387
 
    test -z "$ac_dir" && ac_dir=.
1388
 
    if test -f $ac_dir/$ac_word; then
1389
 
      ac_cv_prog_CC="$ac_prog"
1390
 
      break
1391
 
    fi
1392
 
  done
1393
 
  IFS="$ac_save_ifs"
1394
 
fi
1395
 
fi
1396
 
CC="$ac_cv_prog_CC"
1397
 
if test -n "$CC"; then
1398
 
  echo "$ac_t""$CC" 1>&6
1399
 
else
1400
 
  echo "$ac_t""no" 1>&6
1401
 
fi
1402
 
 
1403
 
test -n "$CC" && break
1404
 
done
1405
 
test -n "$CC" || CC="echo"
1406
 
 
1407
 
    unset ac_cv_prog_CC
1408
 
    # Extract the first word of "gcc", so it can be a program name with args.
1409
 
set dummy gcc; ac_word=$2
1410
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1411
 
echo "configure:1412: checking for $ac_word" >&5
1412
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1413
 
  echo $ac_n "(cached) $ac_c" 1>&6
1414
 
else
1415
 
  if test -n "$CC"; then
1416
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1417
 
else
1418
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1419
 
  ac_dummy="$PATH"
1420
 
  for ac_dir in $ac_dummy; do
1421
 
    test -z "$ac_dir" && ac_dir=.
1422
 
    if test -f $ac_dir/$ac_word; then
1423
 
      ac_cv_prog_CC="gcc"
1424
 
      break
1425
 
    fi
1426
 
  done
1427
 
  IFS="$ac_save_ifs"
1428
 
fi
1429
 
fi
1430
 
CC="$ac_cv_prog_CC"
1431
 
if test -n "$CC"; then
1432
 
  echo "$ac_t""$CC" 1>&6
1433
 
else
1434
 
  echo "$ac_t""no" 1>&6
1435
 
fi
1436
 
 
1437
 
if test -z "$CC"; then
1438
 
  # Extract the first word of "cc", so it can be a program name with args.
1439
 
set dummy cc; ac_word=$2
1440
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1441
 
echo "configure:1442: checking for $ac_word" >&5
1442
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1443
 
  echo $ac_n "(cached) $ac_c" 1>&6
1444
 
else
1445
 
  if test -n "$CC"; then
1446
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1447
 
else
1448
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1449
 
  ac_prog_rejected=no
1450
 
  ac_dummy="$PATH"
1451
 
  for ac_dir in $ac_dummy; do
1452
 
    test -z "$ac_dir" && ac_dir=.
1453
 
    if test -f $ac_dir/$ac_word; then
1454
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1455
 
        ac_prog_rejected=yes
1456
 
        continue
1457
 
      fi
1458
 
      ac_cv_prog_CC="cc"
1459
 
      break
1460
 
    fi
1461
 
  done
1462
 
  IFS="$ac_save_ifs"
1463
 
if test $ac_prog_rejected = yes; then
1464
 
  # We found a bogon in the path, so make sure we never use it.
1465
 
  set dummy $ac_cv_prog_CC
1466
 
  shift
1467
 
  if test $# -gt 0; then
1468
 
    # We chose a different compiler from the bogus one.
1469
 
    # However, it has the same basename, so the bogon will be chosen
1470
 
    # first if we set CC to just the basename; use the full file name.
1471
 
    shift
1472
 
    set dummy "$ac_dir/$ac_word" "$@"
1473
 
    shift
1474
 
    ac_cv_prog_CC="$@"
1475
 
  fi
1476
 
fi
1477
 
fi
1478
 
fi
1479
 
CC="$ac_cv_prog_CC"
1480
 
if test -n "$CC"; then
1481
 
  echo "$ac_t""$CC" 1>&6
1482
 
else
1483
 
  echo "$ac_t""no" 1>&6
1484
 
fi
1485
 
 
1486
 
  if test -z "$CC"; then
1487
 
    case "`uname -s`" in
1488
 
    *win32* | *WIN32*)
1489
 
      # Extract the first word of "cl", so it can be a program name with args.
1490
 
set dummy cl; ac_word=$2
1491
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1492
 
echo "configure:1493: checking for $ac_word" >&5
1493
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1494
 
  echo $ac_n "(cached) $ac_c" 1>&6
1495
 
else
1496
 
  if test -n "$CC"; then
1497
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1498
 
else
1499
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1500
 
  ac_dummy="$PATH"
1501
 
  for ac_dir in $ac_dummy; do
1502
 
    test -z "$ac_dir" && ac_dir=.
1503
 
    if test -f $ac_dir/$ac_word; then
1504
 
      ac_cv_prog_CC="cl"
1505
 
      break
1506
 
    fi
1507
 
  done
1508
 
  IFS="$ac_save_ifs"
1509
 
fi
1510
 
fi
1511
 
CC="$ac_cv_prog_CC"
1512
 
if test -n "$CC"; then
1513
 
  echo "$ac_t""$CC" 1>&6
1514
 
else
1515
 
  echo "$ac_t""no" 1>&6
1516
 
fi
1517
 
 ;;
1518
 
    esac
1519
 
  fi
1520
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1521
 
fi
1522
 
 
1523
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1524
 
echo "configure:1525: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1525
 
 
1526
 
ac_ext=c
1527
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1528
 
ac_cpp='$CPP $CPPFLAGS'
1529
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1530
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1531
 
cross_compiling=$ac_cv_prog_cc_cross
1532
 
 
1533
 
cat > conftest.$ac_ext << EOF
1534
 
 
1535
 
#line 1536 "configure"
1536
 
#include "confdefs.h"
1537
 
 
1538
 
main(){return(0);}
1539
 
EOF
1540
 
if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1541
 
  ac_cv_prog_cc_works=yes
1542
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1543
 
  if (./conftest; exit) 2>/dev/null; then
1544
 
    ac_cv_prog_cc_cross=no
1545
 
  else
1546
 
    ac_cv_prog_cc_cross=yes
1547
 
  fi
1548
 
else
1549
 
  echo "configure: failed program was:" >&5
1550
 
  cat conftest.$ac_ext >&5
1551
 
  ac_cv_prog_cc_works=no
1552
 
fi
1553
 
rm -fr conftest*
1554
 
ac_ext=c
1555
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1556
 
ac_cpp='$CPP $CPPFLAGS'
1557
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1558
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1559
 
cross_compiling=$ac_cv_prog_cc_cross
1560
 
 
1561
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1562
 
if test $ac_cv_prog_cc_works = no; then
1563
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1564
 
fi
1565
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1566
 
echo "configure:1567: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1567
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1568
 
cross_compiling=$ac_cv_prog_cc_cross
1569
 
 
1570
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1571
 
echo "configure:1572: checking whether we are using GNU C" >&5
1572
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1573
 
  echo $ac_n "(cached) $ac_c" 1>&6
1574
 
else
1575
 
  cat > conftest.c <<EOF
1576
 
#ifdef __GNUC__
1577
 
  yes;
1578
 
#endif
1579
 
EOF
1580
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1581
 
  ac_cv_prog_gcc=yes
1582
 
else
1583
 
  ac_cv_prog_gcc=no
1584
 
fi
1585
 
fi
1586
 
 
1587
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1588
 
 
1589
 
if test $ac_cv_prog_gcc = yes; then
1590
 
  GCC=yes
1591
 
else
1592
 
  GCC=
1593
 
fi
1594
 
 
1595
 
ac_test_CFLAGS="${CFLAGS+set}"
1596
 
ac_save_CFLAGS="$CFLAGS"
1597
 
CFLAGS=
1598
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1599
 
echo "configure:1600: checking whether ${CC-cc} accepts -g" >&5
1600
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1601
 
  echo $ac_n "(cached) $ac_c" 1>&6
1602
 
else
1603
 
  echo 'void f(){}' > conftest.c
1604
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1605
 
  ac_cv_prog_cc_g=yes
1606
 
else
1607
 
  ac_cv_prog_cc_g=no
1608
 
fi
1609
 
rm -f conftest*
1610
 
 
1611
 
fi
1612
 
 
1613
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1614
 
if test "$ac_test_CFLAGS" = set; then
1615
 
  CFLAGS="$ac_save_CFLAGS"
1616
 
elif test $ac_cv_prog_cc_g = yes; then
1617
 
  if test "$GCC" = yes; then
1618
 
    CFLAGS="-g -O2"
1619
 
  else
1620
 
    CFLAGS="-g"
1621
 
  fi
1622
 
else
1623
 
  if test "$GCC" = yes; then
1624
 
    CFLAGS="-O2"
1625
 
  else
1626
 
    CFLAGS=
1627
 
  fi
1628
 
fi
1629
 
 
1630
 
    if test -n "$USE_CPLUS"; then
1631
 
        for ac_prog in $CXX "${target_alias}-g++" "${target}-g++"
1632
 
do
1633
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1634
 
set dummy $ac_prog; ac_word=$2
1635
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1636
 
echo "configure:1637: checking for $ac_word" >&5
1637
 
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1638
 
  echo $ac_n "(cached) $ac_c" 1>&6
1639
 
else
1640
 
  if test -n "$CXX"; then
1641
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1642
 
else
1643
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1644
 
  ac_dummy="$PATH"
1645
 
  for ac_dir in $ac_dummy; do
1646
 
    test -z "$ac_dir" && ac_dir=.
1647
 
    if test -f $ac_dir/$ac_word; then
1648
 
      ac_cv_prog_CXX="$ac_prog"
1649
 
      break
1650
 
    fi
1651
 
  done
1652
 
  IFS="$ac_save_ifs"
1653
 
fi
1654
 
fi
1655
 
CXX="$ac_cv_prog_CXX"
1656
 
if test -n "$CXX"; then
1657
 
  echo "$ac_t""$CXX" 1>&6
1658
 
else
1659
 
  echo "$ac_t""no" 1>&6
1660
 
fi
1661
 
 
1662
 
test -n "$CXX" && break
1663
 
done
1664
 
test -n "$CXX" || CXX="echo"
1665
 
 
1666
 
        unset ac_cv_prog_CXX
1667
 
        for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1668
 
do
1669
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1670
 
set dummy $ac_prog; ac_word=$2
1671
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1672
 
echo "configure:1673: checking for $ac_word" >&5
1673
 
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1674
 
  echo $ac_n "(cached) $ac_c" 1>&6
1675
 
else
1676
 
  if test -n "$CXX"; then
1677
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1678
 
else
1679
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1680
 
  ac_dummy="$PATH"
1681
 
  for ac_dir in $ac_dummy; do
1682
 
    test -z "$ac_dir" && ac_dir=.
1683
 
    if test -f $ac_dir/$ac_word; then
1684
 
      ac_cv_prog_CXX="$ac_prog"
1685
 
      break
1686
 
    fi
1687
 
  done
1688
 
  IFS="$ac_save_ifs"
1689
 
fi
1690
 
fi
1691
 
CXX="$ac_cv_prog_CXX"
1692
 
if test -n "$CXX"; then
1693
 
  echo "$ac_t""$CXX" 1>&6
1694
 
else
1695
 
  echo "$ac_t""no" 1>&6
1696
 
fi
1697
 
 
1698
 
test -n "$CXX" && break
1699
 
done
1700
 
test -n "$CXX" || CXX="gcc"
1701
 
 
1702
 
 
1703
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1704
 
echo "configure:1705: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1705
 
 
1706
 
ac_ext=C
1707
 
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1708
 
ac_cpp='$CXXCPP $CPPFLAGS'
1709
 
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1710
 
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1711
 
cross_compiling=$ac_cv_prog_cxx_cross
1712
 
 
1713
 
cat > conftest.$ac_ext << EOF
1714
 
 
1715
 
#line 1716 "configure"
1716
 
#include "confdefs.h"
1717
 
 
1718
 
int main(){return(0);}
1719
 
EOF
1720
 
if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1721
 
  ac_cv_prog_cxx_works=yes
1722
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1723
 
  if (./conftest; exit) 2>/dev/null; then
1724
 
    ac_cv_prog_cxx_cross=no
1725
 
  else
1726
 
    ac_cv_prog_cxx_cross=yes
1727
 
  fi
1728
 
else
1729
 
  echo "configure: failed program was:" >&5
1730
 
  cat conftest.$ac_ext >&5
1731
 
  ac_cv_prog_cxx_works=no
1732
 
fi
1733
 
rm -fr conftest*
1734
 
ac_ext=c
1735
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1736
 
ac_cpp='$CPP $CPPFLAGS'
1737
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1738
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1739
 
cross_compiling=$ac_cv_prog_cc_cross
1740
 
 
1741
 
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1742
 
if test $ac_cv_prog_cxx_works = no; then
1743
 
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1744
 
fi
1745
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1746
 
echo "configure:1747: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1747
 
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1748
 
cross_compiling=$ac_cv_prog_cxx_cross
1749
 
 
1750
 
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1751
 
echo "configure:1752: checking whether we are using GNU C++" >&5
1752
 
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1753
 
  echo $ac_n "(cached) $ac_c" 1>&6
1754
 
else
1755
 
  cat > conftest.C <<EOF
1756
 
#ifdef __GNUC__
1757
 
  yes;
1758
 
#endif
1759
 
EOF
1760
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1761
 
  ac_cv_prog_gxx=yes
1762
 
else
1763
 
  ac_cv_prog_gxx=no
1764
 
fi
1765
 
fi
1766
 
 
1767
 
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1768
 
 
1769
 
if test $ac_cv_prog_gxx = yes; then
1770
 
  GXX=yes
1771
 
else
1772
 
  GXX=
1773
 
fi
1774
 
 
1775
 
ac_test_CXXFLAGS="${CXXFLAGS+set}"
1776
 
ac_save_CXXFLAGS="$CXXFLAGS"
1777
 
CXXFLAGS=
1778
 
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1779
 
echo "configure:1780: checking whether ${CXX-g++} accepts -g" >&5
1780
 
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1781
 
  echo $ac_n "(cached) $ac_c" 1>&6
1782
 
else
1783
 
  echo 'void f(){}' > conftest.cc
1784
 
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1785
 
  ac_cv_prog_cxx_g=yes
1786
 
else
1787
 
  ac_cv_prog_cxx_g=no
1788
 
fi
1789
 
rm -f conftest*
1790
 
 
1791
 
fi
1792
 
 
1793
 
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1794
 
if test "$ac_test_CXXFLAGS" = set; then
1795
 
  CXXFLAGS="$ac_save_CXXFLAGS"
1796
 
elif test $ac_cv_prog_cxx_g = yes; then
1797
 
  if test "$GXX" = yes; then
1798
 
    CXXFLAGS="-g -O2"
1799
 
  else
1800
 
    CXXFLAGS="-g"
1801
 
  fi
1802
 
else
1803
 
  if test "$GXX" = yes; then
1804
 
    CXXFLAGS="-O2"
1805
 
  else
1806
 
    CXXFLAGS=
1807
 
  fi
1808
 
fi
1809
 
 
1810
 
    fi
1811
 
 
1812
 
    case "$build:$target" in
1813
 
      powerpc-apple-darwin8*:i?86-apple-darwin*)
1814
 
                                CFLAGS=$_SAVE_CFLAGS
1815
 
        CXXFLAGS=$_SAVE_CXXFLAGS
1816
 
        ;;
1817
 
    esac
1818
 
 
1819
 
    for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib"
1820
 
do
1821
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1822
 
set dummy $ac_prog; ac_word=$2
1823
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1824
 
echo "configure:1825: checking for $ac_word" >&5
1825
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1826
 
  echo $ac_n "(cached) $ac_c" 1>&6
1827
 
else
1828
 
  if test -n "$RANLIB"; then
1829
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1830
 
else
1831
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1832
 
  ac_dummy="$PATH"
1833
 
  for ac_dir in $ac_dummy; do
1834
 
    test -z "$ac_dir" && ac_dir=.
1835
 
    if test -f $ac_dir/$ac_word; then
1836
 
      ac_cv_prog_RANLIB="$ac_prog"
1837
 
      break
1838
 
    fi
1839
 
  done
1840
 
  IFS="$ac_save_ifs"
1841
 
fi
1842
 
fi
1843
 
RANLIB="$ac_cv_prog_RANLIB"
1844
 
if test -n "$RANLIB"; then
1845
 
  echo "$ac_t""$RANLIB" 1>&6
1846
 
else
1847
 
  echo "$ac_t""no" 1>&6
1848
 
fi
1849
 
 
1850
 
test -n "$RANLIB" && break
1851
 
done
1852
 
test -n "$RANLIB" || RANLIB="echo"
1853
 
 
1854
 
    for ac_prog in $AR "${target_alias}-ar" "${target}-ar"
1855
 
do
1856
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1857
 
set dummy $ac_prog; ac_word=$2
1858
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1859
 
echo "configure:1860: checking for $ac_word" >&5
1860
 
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1861
 
  echo $ac_n "(cached) $ac_c" 1>&6
1862
 
else
1863
 
  if test -n "$AR"; then
1864
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
1865
 
else
1866
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1867
 
  ac_dummy="$PATH"
1868
 
  for ac_dir in $ac_dummy; do
1869
 
    test -z "$ac_dir" && ac_dir=.
1870
 
    if test -f $ac_dir/$ac_word; then
1871
 
      ac_cv_prog_AR="$ac_prog"
1872
 
      break
1873
 
    fi
1874
 
  done
1875
 
  IFS="$ac_save_ifs"
1876
 
fi
1877
 
fi
1878
 
AR="$ac_cv_prog_AR"
1879
 
if test -n "$AR"; then
1880
 
  echo "$ac_t""$AR" 1>&6
1881
 
else
1882
 
  echo "$ac_t""no" 1>&6
1883
 
fi
1884
 
 
1885
 
test -n "$AR" && break
1886
 
done
1887
 
test -n "$AR" || AR="echo"
1888
 
 
1889
 
    for ac_prog in $AS "${target_alias}-as" "${target}-as"
1890
 
do
1891
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1892
 
set dummy $ac_prog; ac_word=$2
1893
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1894
 
echo "configure:1895: checking for $ac_word" >&5
1895
 
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1896
 
  echo $ac_n "(cached) $ac_c" 1>&6
1897
 
else
1898
 
  if test -n "$AS"; then
1899
 
  ac_cv_prog_AS="$AS" # Let the user override the test.
1900
 
else
1901
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1902
 
  ac_dummy="$PATH"
1903
 
  for ac_dir in $ac_dummy; do
1904
 
    test -z "$ac_dir" && ac_dir=.
1905
 
    if test -f $ac_dir/$ac_word; then
1906
 
      ac_cv_prog_AS="$ac_prog"
1907
 
      break
1908
 
    fi
1909
 
  done
1910
 
  IFS="$ac_save_ifs"
1911
 
fi
1912
 
fi
1913
 
AS="$ac_cv_prog_AS"
1914
 
if test -n "$AS"; then
1915
 
  echo "$ac_t""$AS" 1>&6
1916
 
else
1917
 
  echo "$ac_t""no" 1>&6
1918
 
fi
1919
 
 
1920
 
test -n "$AS" && break
1921
 
done
1922
 
test -n "$AS" || AS="echo"
1923
 
 
1924
 
    for ac_prog in $LD "${target_alias}-ld" "${target}-ld"
1925
 
do
1926
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1927
 
set dummy $ac_prog; ac_word=$2
1928
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1929
 
echo "configure:1930: checking for $ac_word" >&5
1930
 
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1931
 
  echo $ac_n "(cached) $ac_c" 1>&6
1932
 
else
1933
 
  if test -n "$LD"; then
1934
 
  ac_cv_prog_LD="$LD" # Let the user override the test.
1935
 
else
1936
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1937
 
  ac_dummy="$PATH"
1938
 
  for ac_dir in $ac_dummy; do
1939
 
    test -z "$ac_dir" && ac_dir=.
1940
 
    if test -f $ac_dir/$ac_word; then
1941
 
      ac_cv_prog_LD="$ac_prog"
1942
 
      break
1943
 
    fi
1944
 
  done
1945
 
  IFS="$ac_save_ifs"
1946
 
fi
1947
 
fi
1948
 
LD="$ac_cv_prog_LD"
1949
 
if test -n "$LD"; then
1950
 
  echo "$ac_t""$LD" 1>&6
1951
 
else
1952
 
  echo "$ac_t""no" 1>&6
1953
 
fi
1954
 
 
1955
 
test -n "$LD" && break
1956
 
done
1957
 
test -n "$LD" || LD="echo"
1958
 
 
1959
 
    for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip"
1960
 
do
1961
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1962
 
set dummy $ac_prog; ac_word=$2
1963
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1964
 
echo "configure:1965: checking for $ac_word" >&5
1965
 
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1966
 
  echo $ac_n "(cached) $ac_c" 1>&6
1967
 
else
1968
 
  if test -n "$STRIP"; then
1969
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1970
 
else
1971
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1972
 
  ac_dummy="$PATH"
1973
 
  for ac_dir in $ac_dummy; do
1974
 
    test -z "$ac_dir" && ac_dir=.
1975
 
    if test -f $ac_dir/$ac_word; then
1976
 
      ac_cv_prog_STRIP="$ac_prog"
1977
 
      break
1978
 
    fi
1979
 
  done
1980
 
  IFS="$ac_save_ifs"
1981
 
fi
1982
 
fi
1983
 
STRIP="$ac_cv_prog_STRIP"
1984
 
if test -n "$STRIP"; then
1985
 
  echo "$ac_t""$STRIP" 1>&6
1986
 
else
1987
 
  echo "$ac_t""no" 1>&6
1988
 
fi
1989
 
 
1990
 
test -n "$STRIP" && break
1991
 
done
1992
 
test -n "$STRIP" || STRIP="echo"
1993
 
 
1994
 
    for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres"
1995
 
do
1996
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1997
 
set dummy $ac_prog; ac_word=$2
1998
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999
 
echo "configure:2000: checking for $ac_word" >&5
2000
 
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
2001
 
  echo $ac_n "(cached) $ac_c" 1>&6
2002
 
else
2003
 
  if test -n "$WINDRES"; then
2004
 
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2005
 
else
2006
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2007
 
  ac_dummy="$PATH"
2008
 
  for ac_dir in $ac_dummy; do
2009
 
    test -z "$ac_dir" && ac_dir=.
2010
 
    if test -f $ac_dir/$ac_word; then
2011
 
      ac_cv_prog_WINDRES="$ac_prog"
2012
 
      break
2013
 
    fi
2014
 
  done
2015
 
  IFS="$ac_save_ifs"
2016
 
fi
2017
 
fi
2018
 
WINDRES="$ac_cv_prog_WINDRES"
2019
 
if test -n "$WINDRES"; then
2020
 
  echo "$ac_t""$WINDRES" 1>&6
2021
 
else
2022
 
  echo "$ac_t""no" 1>&6
2023
 
fi
2024
 
 
2025
 
test -n "$WINDRES" && break
2026
 
done
2027
 
test -n "$WINDRES" || WINDRES="echo"
2028
 
 
2029
 
 
2030
 
else
2031
 
    # Extract the first word of "gcc", so it can be a program name with args.
2032
 
set dummy gcc; ac_word=$2
2033
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2034
 
echo "configure:2035: checking for $ac_word" >&5
2035
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2036
 
  echo $ac_n "(cached) $ac_c" 1>&6
2037
 
else
2038
 
  if test -n "$CC"; then
2039
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2040
 
else
2041
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2042
 
  ac_dummy="$PATH"
2043
 
  for ac_dir in $ac_dummy; do
2044
 
    test -z "$ac_dir" && ac_dir=.
2045
 
    if test -f $ac_dir/$ac_word; then
2046
 
      ac_cv_prog_CC="gcc"
2047
 
      break
2048
 
    fi
2049
 
  done
2050
 
  IFS="$ac_save_ifs"
2051
 
fi
2052
 
fi
2053
 
CC="$ac_cv_prog_CC"
2054
 
if test -n "$CC"; then
2055
 
  echo "$ac_t""$CC" 1>&6
2056
 
else
2057
 
  echo "$ac_t""no" 1>&6
2058
 
fi
2059
 
 
2060
 
if test -z "$CC"; then
2061
 
  # Extract the first word of "cc", so it can be a program name with args.
2062
 
set dummy cc; ac_word=$2
2063
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2064
 
echo "configure:2065: checking for $ac_word" >&5
2065
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2066
 
  echo $ac_n "(cached) $ac_c" 1>&6
2067
 
else
2068
 
  if test -n "$CC"; then
2069
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2070
 
else
2071
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2072
 
  ac_prog_rejected=no
2073
 
  ac_dummy="$PATH"
2074
 
  for ac_dir in $ac_dummy; do
2075
 
    test -z "$ac_dir" && ac_dir=.
2076
 
    if test -f $ac_dir/$ac_word; then
2077
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2078
 
        ac_prog_rejected=yes
2079
 
        continue
2080
 
      fi
2081
 
      ac_cv_prog_CC="cc"
2082
 
      break
2083
 
    fi
2084
 
  done
2085
 
  IFS="$ac_save_ifs"
2086
 
if test $ac_prog_rejected = yes; then
2087
 
  # We found a bogon in the path, so make sure we never use it.
2088
 
  set dummy $ac_cv_prog_CC
2089
 
  shift
2090
 
  if test $# -gt 0; then
2091
 
    # We chose a different compiler from the bogus one.
2092
 
    # However, it has the same basename, so the bogon will be chosen
2093
 
    # first if we set CC to just the basename; use the full file name.
2094
 
    shift
2095
 
    set dummy "$ac_dir/$ac_word" "$@"
2096
 
    shift
2097
 
    ac_cv_prog_CC="$@"
2098
 
  fi
2099
 
fi
2100
 
fi
2101
 
fi
2102
 
CC="$ac_cv_prog_CC"
2103
 
if test -n "$CC"; then
2104
 
  echo "$ac_t""$CC" 1>&6
2105
 
else
2106
 
  echo "$ac_t""no" 1>&6
2107
 
fi
2108
 
 
2109
 
  if test -z "$CC"; then
2110
 
    case "`uname -s`" in
2111
 
    *win32* | *WIN32*)
2112
 
      # Extract the first word of "cl", so it can be a program name with args.
2113
 
set dummy cl; ac_word=$2
2114
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2115
 
echo "configure:2116: checking for $ac_word" >&5
2116
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2117
 
  echo $ac_n "(cached) $ac_c" 1>&6
2118
 
else
2119
 
  if test -n "$CC"; then
2120
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2121
 
else
2122
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2123
 
  ac_dummy="$PATH"
2124
 
  for ac_dir in $ac_dummy; do
2125
 
    test -z "$ac_dir" && ac_dir=.
2126
 
    if test -f $ac_dir/$ac_word; then
2127
 
      ac_cv_prog_CC="cl"
2128
 
      break
2129
 
    fi
2130
 
  done
2131
 
  IFS="$ac_save_ifs"
2132
 
fi
2133
 
fi
2134
 
CC="$ac_cv_prog_CC"
2135
 
if test -n "$CC"; then
2136
 
  echo "$ac_t""$CC" 1>&6
2137
 
else
2138
 
  echo "$ac_t""no" 1>&6
2139
 
fi
2140
 
 ;;
2141
 
    esac
2142
 
  fi
2143
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2144
 
fi
2145
 
 
2146
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2147
 
echo "configure:2148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2148
 
 
2149
 
ac_ext=c
2150
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2151
 
ac_cpp='$CPP $CPPFLAGS'
2152
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2153
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2154
 
cross_compiling=$ac_cv_prog_cc_cross
2155
 
 
2156
 
cat > conftest.$ac_ext << EOF
2157
 
 
2158
 
#line 2159 "configure"
2159
 
#include "confdefs.h"
2160
 
 
2161
 
main(){return(0);}
2162
 
EOF
2163
 
if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2164
 
  ac_cv_prog_cc_works=yes
2165
 
  # If we can't run a trivial program, we are probably using a cross compiler.
2166
 
  if (./conftest; exit) 2>/dev/null; then
2167
 
    ac_cv_prog_cc_cross=no
2168
 
  else
2169
 
    ac_cv_prog_cc_cross=yes
2170
 
  fi
2171
 
else
2172
 
  echo "configure: failed program was:" >&5
2173
 
  cat conftest.$ac_ext >&5
2174
 
  ac_cv_prog_cc_works=no
2175
 
fi
2176
 
rm -fr conftest*
2177
 
ac_ext=c
2178
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2179
 
ac_cpp='$CPP $CPPFLAGS'
2180
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2181
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2182
 
cross_compiling=$ac_cv_prog_cc_cross
2183
 
 
2184
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2185
 
if test $ac_cv_prog_cc_works = no; then
2186
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2187
 
fi
2188
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2189
 
echo "configure:2190: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2190
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2191
 
cross_compiling=$ac_cv_prog_cc_cross
2192
 
 
2193
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2194
 
echo "configure:2195: checking whether we are using GNU C" >&5
2195
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2196
 
  echo $ac_n "(cached) $ac_c" 1>&6
2197
 
else
2198
 
  cat > conftest.c <<EOF
2199
 
#ifdef __GNUC__
2200
 
  yes;
2201
 
#endif
2202
 
EOF
2203
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2204
 
  ac_cv_prog_gcc=yes
2205
 
else
2206
 
  ac_cv_prog_gcc=no
2207
 
fi
2208
 
fi
2209
 
 
2210
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2211
 
 
2212
 
if test $ac_cv_prog_gcc = yes; then
2213
 
  GCC=yes
2214
 
else
2215
 
  GCC=
2216
 
fi
2217
 
 
2218
 
ac_test_CFLAGS="${CFLAGS+set}"
2219
 
ac_save_CFLAGS="$CFLAGS"
2220
 
CFLAGS=
2221
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2222
 
echo "configure:2223: checking whether ${CC-cc} accepts -g" >&5
2223
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2224
 
  echo $ac_n "(cached) $ac_c" 1>&6
2225
 
else
2226
 
  echo 'void f(){}' > conftest.c
2227
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2228
 
  ac_cv_prog_cc_g=yes
2229
 
else
2230
 
  ac_cv_prog_cc_g=no
2231
 
fi
2232
 
rm -f conftest*
2233
 
 
2234
 
fi
2235
 
 
2236
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2237
 
if test "$ac_test_CFLAGS" = set; then
2238
 
  CFLAGS="$ac_save_CFLAGS"
2239
 
elif test $ac_cv_prog_cc_g = yes; then
2240
 
  if test "$GCC" = yes; then
2241
 
    CFLAGS="-g -O2"
2242
 
  else
2243
 
    CFLAGS="-g"
2244
 
  fi
2245
 
else
2246
 
  if test "$GCC" = yes; then
2247
 
    CFLAGS="-O2"
2248
 
  else
2249
 
    CFLAGS=
2250
 
  fi
2251
 
fi
2252
 
 
2253
 
    if test -n "$USE_CPLUS"; then
2254
 
        if test "$CC" = "cl" -a -z "$CXX"; then
2255
 
            CXX=$CC
2256
 
        else        
2257
 
            for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2258
 
do
2259
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
2260
 
set dummy $ac_prog; ac_word=$2
2261
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2262
 
echo "configure:2263: checking for $ac_word" >&5
2263
 
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2264
 
  echo $ac_n "(cached) $ac_c" 1>&6
2265
 
else
2266
 
  if test -n "$CXX"; then
2267
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2268
 
else
2269
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2270
 
  ac_dummy="$PATH"
2271
 
  for ac_dir in $ac_dummy; do
2272
 
    test -z "$ac_dir" && ac_dir=.
2273
 
    if test -f $ac_dir/$ac_word; then
2274
 
      ac_cv_prog_CXX="$ac_prog"
2275
 
      break
2276
 
    fi
2277
 
  done
2278
 
  IFS="$ac_save_ifs"
2279
 
fi
2280
 
fi
2281
 
CXX="$ac_cv_prog_CXX"
2282
 
if test -n "$CXX"; then
2283
 
  echo "$ac_t""$CXX" 1>&6
2284
 
else
2285
 
  echo "$ac_t""no" 1>&6
2286
 
fi
2287
 
 
2288
 
test -n "$CXX" && break
2289
 
done
2290
 
test -n "$CXX" || CXX="gcc"
2291
 
 
2292
 
 
2293
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2294
 
echo "configure:2295: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2295
 
 
2296
 
ac_ext=C
2297
 
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2298
 
ac_cpp='$CXXCPP $CPPFLAGS'
2299
 
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2300
 
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2301
 
cross_compiling=$ac_cv_prog_cxx_cross
2302
 
 
2303
 
cat > conftest.$ac_ext << EOF
2304
 
 
2305
 
#line 2306 "configure"
2306
 
#include "confdefs.h"
2307
 
 
2308
 
int main(){return(0);}
2309
 
EOF
2310
 
if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2311
 
  ac_cv_prog_cxx_works=yes
2312
 
  # If we can't run a trivial program, we are probably using a cross compiler.
2313
 
  if (./conftest; exit) 2>/dev/null; then
2314
 
    ac_cv_prog_cxx_cross=no
2315
 
  else
2316
 
    ac_cv_prog_cxx_cross=yes
2317
 
  fi
2318
 
else
2319
 
  echo "configure: failed program was:" >&5
2320
 
  cat conftest.$ac_ext >&5
2321
 
  ac_cv_prog_cxx_works=no
2322
 
fi
2323
 
rm -fr conftest*
2324
 
ac_ext=c
2325
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2326
 
ac_cpp='$CPP $CPPFLAGS'
2327
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2328
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2329
 
cross_compiling=$ac_cv_prog_cc_cross
2330
 
 
2331
 
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2332
 
if test $ac_cv_prog_cxx_works = no; then
2333
 
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2334
 
fi
2335
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2336
 
echo "configure:2337: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2337
 
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2338
 
cross_compiling=$ac_cv_prog_cxx_cross
2339
 
 
2340
 
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2341
 
echo "configure:2342: checking whether we are using GNU C++" >&5
2342
 
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2343
 
  echo $ac_n "(cached) $ac_c" 1>&6
2344
 
else
2345
 
  cat > conftest.C <<EOF
2346
 
#ifdef __GNUC__
2347
 
  yes;
2348
 
#endif
2349
 
EOF
2350
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2351
 
  ac_cv_prog_gxx=yes
2352
 
else
2353
 
  ac_cv_prog_gxx=no
2354
 
fi
2355
 
fi
2356
 
 
2357
 
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2358
 
 
2359
 
if test $ac_cv_prog_gxx = yes; then
2360
 
  GXX=yes
2361
 
else
2362
 
  GXX=
2363
 
fi
2364
 
 
2365
 
ac_test_CXXFLAGS="${CXXFLAGS+set}"
2366
 
ac_save_CXXFLAGS="$CXXFLAGS"
2367
 
CXXFLAGS=
2368
 
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2369
 
echo "configure:2370: checking whether ${CXX-g++} accepts -g" >&5
2370
 
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2371
 
  echo $ac_n "(cached) $ac_c" 1>&6
2372
 
else
2373
 
  echo 'void f(){}' > conftest.cc
2374
 
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2375
 
  ac_cv_prog_cxx_g=yes
2376
 
else
2377
 
  ac_cv_prog_cxx_g=no
2378
 
fi
2379
 
rm -f conftest*
2380
 
 
2381
 
fi
2382
 
 
2383
 
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2384
 
if test "$ac_test_CXXFLAGS" = set; then
2385
 
  CXXFLAGS="$ac_save_CXXFLAGS"
2386
 
elif test $ac_cv_prog_cxx_g = yes; then
2387
 
  if test "$GXX" = yes; then
2388
 
    CXXFLAGS="-g -O2"
2389
 
  else
2390
 
    CXXFLAGS="-g"
2391
 
  fi
2392
 
else
2393
 
  if test "$GXX" = yes; then
2394
 
    CXXFLAGS="-O2"
2395
 
  else
2396
 
    CXXFLAGS=
2397
 
  fi
2398
 
fi
2399
 
 
2400
 
        fi
2401
 
    fi
2402
 
    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2403
 
echo "configure:2404: checking how to run the C preprocessor" >&5
2404
 
# On Suns, sometimes $CPP names a directory.
2405
 
if test -n "$CPP" && test -d "$CPP"; then
2406
 
  CPP=
2407
 
fi
2408
 
if test -z "$CPP"; then
2409
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2410
 
  echo $ac_n "(cached) $ac_c" 1>&6
2411
 
else
2412
 
    # This must be in double quotes, not single quotes, because CPP may get
2413
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
2414
 
  CPP="${CC-cc} -E"
2415
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2416
 
  # not just through cpp.
2417
 
  cat > conftest.$ac_ext <<EOF
2418
 
#line 2419 "configure"
2419
 
#include "confdefs.h"
2420
 
#include <assert.h>
2421
 
Syntax Error
2422
 
EOF
2423
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2424
 
{ (eval echo configure:2425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2425
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2426
 
if test -z "$ac_err"; then
2427
 
  :
2428
 
else
2429
 
  echo "$ac_err" >&5
2430
 
  echo "configure: failed program was:" >&5
2431
 
  cat conftest.$ac_ext >&5
2432
 
  rm -rf conftest*
2433
 
  CPP="${CC-cc} -E -traditional-cpp"
2434
 
  cat > conftest.$ac_ext <<EOF
2435
 
#line 2436 "configure"
2436
 
#include "confdefs.h"
2437
 
#include <assert.h>
2438
 
Syntax Error
2439
 
EOF
2440
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2441
 
{ (eval echo configure:2442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2442
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2443
 
if test -z "$ac_err"; then
2444
 
  :
2445
 
else
2446
 
  echo "$ac_err" >&5
2447
 
  echo "configure: failed program was:" >&5
2448
 
  cat conftest.$ac_ext >&5
2449
 
  rm -rf conftest*
2450
 
  CPP="${CC-cc} -nologo -E"
2451
 
  cat > conftest.$ac_ext <<EOF
2452
 
#line 2453 "configure"
2453
 
#include "confdefs.h"
2454
 
#include <assert.h>
2455
 
Syntax Error
2456
 
EOF
2457
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2458
 
{ (eval echo configure:2459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2459
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2460
 
if test -z "$ac_err"; then
2461
 
  :
2462
 
else
2463
 
  echo "$ac_err" >&5
2464
 
  echo "configure: failed program was:" >&5
2465
 
  cat conftest.$ac_ext >&5
2466
 
  rm -rf conftest*
2467
 
  CPP=/lib/cpp
2468
 
fi
2469
 
rm -f conftest*
2470
 
fi
2471
 
rm -f conftest*
2472
 
fi
2473
 
rm -f conftest*
2474
 
  ac_cv_prog_CPP="$CPP"
2475
 
fi
2476
 
  CPP="$ac_cv_prog_CPP"
2477
 
else
2478
 
  ac_cv_prog_CPP="$CPP"
2479
 
fi
2480
 
echo "$ac_t""$CPP" 1>&6
2481
 
 
2482
 
    # Extract the first word of "ranlib", so it can be a program name with args.
2483
 
set dummy ranlib; ac_word=$2
2484
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2485
 
echo "configure:2486: checking for $ac_word" >&5
2486
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2487
 
  echo $ac_n "(cached) $ac_c" 1>&6
2488
 
else
2489
 
  if test -n "$RANLIB"; then
2490
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2491
 
else
2492
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2493
 
  ac_dummy="$PATH"
2494
 
  for ac_dir in $ac_dummy; do
2495
 
    test -z "$ac_dir" && ac_dir=.
2496
 
    if test -f $ac_dir/$ac_word; then
2497
 
      ac_cv_prog_RANLIB="ranlib"
2498
 
      break
2499
 
    fi
2500
 
  done
2501
 
  IFS="$ac_save_ifs"
2502
 
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2503
 
fi
2504
 
fi
2505
 
RANLIB="$ac_cv_prog_RANLIB"
2506
 
if test -n "$RANLIB"; then
2507
 
  echo "$ac_t""$RANLIB" 1>&6
2508
 
else
2509
 
  echo "$ac_t""no" 1>&6
2510
 
fi
2511
 
 
2512
 
    for ac_prog in as
2513
 
do
2514
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
2515
 
set dummy $ac_prog; ac_word=$2
2516
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2517
 
echo "configure:2518: checking for $ac_word" >&5
2518
 
if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
2519
 
  echo $ac_n "(cached) $ac_c" 1>&6
2520
 
else
2521
 
  case "$AS" in
2522
 
  /*)
2523
 
  ac_cv_path_AS="$AS" # Let the user override the test with a path.
2524
 
  ;;
2525
 
  ?:/*)                  
2526
 
  ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
2527
 
  ;;
2528
 
  *)
2529
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2530
 
  ac_dummy="$PATH"
2531
 
  for ac_dir in $ac_dummy; do 
2532
 
    test -z "$ac_dir" && ac_dir=.
2533
 
    if test -f $ac_dir/$ac_word; then
2534
 
      ac_cv_path_AS="$ac_dir/$ac_word"
2535
 
      break
2536
 
    fi
2537
 
  done
2538
 
  IFS="$ac_save_ifs"
2539
 
  ;;
2540
 
esac
2541
 
fi
2542
 
AS="$ac_cv_path_AS"
2543
 
if test -n "$AS"; then
2544
 
  echo "$ac_t""$AS" 1>&6
2545
 
else
2546
 
  echo "$ac_t""no" 1>&6
2547
 
fi
2548
 
 
2549
 
test -n "$AS" && break
2550
 
done
2551
 
test -n "$AS" || AS="$CC"
2552
 
 
2553
 
    for ac_prog in ar
2554
 
do
2555
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
2556
 
set dummy $ac_prog; ac_word=$2
2557
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2558
 
echo "configure:2559: checking for $ac_word" >&5
2559
 
if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
2560
 
  echo $ac_n "(cached) $ac_c" 1>&6
2561
 
else
2562
 
  case "$AR" in
2563
 
  /*)
2564
 
  ac_cv_path_AR="$AR" # Let the user override the test with a path.
2565
 
  ;;
2566
 
  ?:/*)                  
2567
 
  ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
2568
 
  ;;
2569
 
  *)
2570
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2571
 
  ac_dummy="$PATH"
2572
 
  for ac_dir in $ac_dummy; do 
2573
 
    test -z "$ac_dir" && ac_dir=.
2574
 
    if test -f $ac_dir/$ac_word; then
2575
 
      ac_cv_path_AR="$ac_dir/$ac_word"
2576
 
      break
2577
 
    fi
2578
 
  done
2579
 
  IFS="$ac_save_ifs"
2580
 
  ;;
2581
 
esac
2582
 
fi
2583
 
AR="$ac_cv_path_AR"
2584
 
if test -n "$AR"; then
2585
 
  echo "$ac_t""$AR" 1>&6
2586
 
else
2587
 
  echo "$ac_t""no" 1>&6
2588
 
fi
2589
 
 
2590
 
test -n "$AR" && break
2591
 
done
2592
 
test -n "$AR" || AR="echo not_ar"
2593
 
 
2594
 
    for ac_prog in ld link
2595
 
do
2596
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
2597
 
set dummy $ac_prog; ac_word=$2
2598
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2599
 
echo "configure:2600: checking for $ac_word" >&5
2600
 
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2601
 
  echo $ac_n "(cached) $ac_c" 1>&6
2602
 
else
2603
 
  case "$LD" in
2604
 
  /*)
2605
 
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
2606
 
  ;;
2607
 
  ?:/*)                  
2608
 
  ac_cv_path_LD="$LD" # Let the user override the test with a dos path.
2609
 
  ;;
2610
 
  *)
2611
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2612
 
  ac_dummy="$PATH"
2613
 
  for ac_dir in $ac_dummy; do 
2614
 
    test -z "$ac_dir" && ac_dir=.
2615
 
    if test -f $ac_dir/$ac_word; then
2616
 
      ac_cv_path_LD="$ac_dir/$ac_word"
2617
 
      break
2618
 
    fi
2619
 
  done
2620
 
  IFS="$ac_save_ifs"
2621
 
  ;;
2622
 
esac
2623
 
fi
2624
 
LD="$ac_cv_path_LD"
2625
 
if test -n "$LD"; then
2626
 
  echo "$ac_t""$LD" 1>&6
2627
 
else
2628
 
  echo "$ac_t""no" 1>&6
2629
 
fi
2630
 
 
2631
 
test -n "$LD" && break
2632
 
done
2633
 
test -n "$LD" || LD="echo not_ld"
2634
 
 
2635
 
    for ac_prog in strip
2636
 
do
2637
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
2638
 
set dummy $ac_prog; ac_word=$2
2639
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2640
 
echo "configure:2641: checking for $ac_word" >&5
2641
 
if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
2642
 
  echo $ac_n "(cached) $ac_c" 1>&6
2643
 
else
2644
 
  case "$STRIP" in
2645
 
  /*)
2646
 
  ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
2647
 
  ;;
2648
 
  ?:/*)                  
2649
 
  ac_cv_path_STRIP="$STRIP" # Let the user override the test with a dos path.
2650
 
  ;;
2651
 
  *)
2652
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2653
 
  ac_dummy="$PATH"
2654
 
  for ac_dir in $ac_dummy; do 
2655
 
    test -z "$ac_dir" && ac_dir=.
2656
 
    if test -f $ac_dir/$ac_word; then
2657
 
      ac_cv_path_STRIP="$ac_dir/$ac_word"
2658
 
      break
2659
 
    fi
2660
 
  done
2661
 
  IFS="$ac_save_ifs"
2662
 
  ;;
2663
 
esac
2664
 
fi
2665
 
STRIP="$ac_cv_path_STRIP"
2666
 
if test -n "$STRIP"; then
2667
 
  echo "$ac_t""$STRIP" 1>&6
2668
 
else
2669
 
  echo "$ac_t""no" 1>&6
2670
 
fi
2671
 
 
2672
 
test -n "$STRIP" && break
2673
 
done
2674
 
test -n "$STRIP" || STRIP="echo not_strip"
2675
 
 
2676
 
    for ac_prog in windres
2677
 
do
2678
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
2679
 
set dummy $ac_prog; ac_word=$2
2680
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2681
 
echo "configure:2682: checking for $ac_word" >&5
2682
 
if eval "test \"`echo '$''{'ac_cv_path_WINDRES'+set}'`\" = set"; then
2683
 
  echo $ac_n "(cached) $ac_c" 1>&6
2684
 
else
2685
 
  case "$WINDRES" in
2686
 
  /*)
2687
 
  ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
2688
 
  ;;
2689
 
  ?:/*)                  
2690
 
  ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a dos path.
2691
 
  ;;
2692
 
  *)
2693
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2694
 
  ac_dummy="$PATH"
2695
 
  for ac_dir in $ac_dummy; do 
2696
 
    test -z "$ac_dir" && ac_dir=.
2697
 
    if test -f $ac_dir/$ac_word; then
2698
 
      ac_cv_path_WINDRES="$ac_dir/$ac_word"
2699
 
      break
2700
 
    fi
2701
 
  done
2702
 
  IFS="$ac_save_ifs"
2703
 
  ;;
2704
 
esac
2705
 
fi
2706
 
WINDRES="$ac_cv_path_WINDRES"
2707
 
if test -n "$WINDRES"; then
2708
 
  echo "$ac_t""$WINDRES" 1>&6
2709
 
else
2710
 
  echo "$ac_t""no" 1>&6
2711
 
fi
2712
 
 
2713
 
test -n "$WINDRES" && break
2714
 
done
2715
 
test -n "$WINDRES" || WINDRES="echo not_windres"
2716
 
 
2717
 
    if test -z "$HOST_CC"; then
2718
 
        HOST_CC="$CC"
2719
 
    fi
2720
 
    if test -z "$HOST_CFLAGS"; then
2721
 
        HOST_CFLAGS="$CFLAGS"
2722
 
    fi
2723
 
fi
2724
 
 
2725
 
if test "$GCC" = "yes"; then
2726
 
    GNU_CC=1
2727
 
fi
2728
 
if test "$GXX" = "yes"; then
2729
 
    GNU_CXX=1
2730
 
fi
2731
 
if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then
2732
 
    GNU_AS=1
2733
 
fi
2734
 
rm -f a.out
2735
 
 
2736
 
case "$build:$target" in
2737
 
    i?86-apple-darwin*:powerpc-apple-darwin*)
2738
 
                                cross_compiling=yes
2739
 
        ;;
2740
 
esac
2741
 
 
2742
 
if test "$cross_compiling"  = "yes"; then
2743
 
    CROSS_COMPILE=1
2744
 
else
2745
 
    CROSS_COMPILE=
2746
 
fi
2747
 
 
2748
 
echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6
2749
 
echo "configure:2750: checking for gcc -pipe support" >&5
2750
 
if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
2751
 
    echo '#include <stdio.h>' > dummy-hello.c
2752
 
    echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c
2753
 
    ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5
2754
 
    cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5
2755
 
    if test $? = 0; then
2756
 
        _res_as_stdin="yes"
2757
 
    else
2758
 
        _res_as_stdin="no"
2759
 
    fi
2760
 
    if test "$_res_as_stdin" = "yes"; then
2761
 
        _SAVE_CFLAGS=$CFLAGS
2762
 
        CFLAGS="$CFLAGS -pipe"
2763
 
        cat > conftest.$ac_ext <<EOF
2764
 
#line 2765 "configure"
2765
 
#include "confdefs.h"
2766
 
 #include <stdio.h> 
2767
 
int main() {
2768
 
printf("Hello World\n");
2769
 
; return 0; }
2770
 
EOF
2771
 
if { (eval echo configure:2772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2772
 
  rm -rf conftest*
2773
 
  _res_gcc_pipe="yes"
2774
 
else
2775
 
  echo "configure: failed program was:" >&5
2776
 
  cat conftest.$ac_ext >&5
2777
 
  rm -rf conftest*
2778
 
  _res_gcc_pipe="no" 
2779
 
fi
2780
 
rm -f conftest*
2781
 
        CFLAGS=$_SAVE_CFLAGS
2782
 
    fi
2783
 
    if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then
2784
 
        _res="yes";
2785
 
        CFLAGS="$CFLAGS -pipe"
2786
 
        CXXFLAGS="$CXXFLAGS -pipe"
2787
 
    else
2788
 
        _res="no"
2789
 
    fi
2790
 
    rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out
2791
 
    echo "$ac_t""$_res" 1>&6
2792
 
else
2793
 
    echo "$ac_t""no" 1>&6
2794
 
fi
2795
 
 
2796
 
 
2797
 
_SAVE_CFLAGS="$CFLAGS"
2798
 
CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction"
2799
 
 
2800
 
echo $ac_n "checking whether C compiler supports -fprofile-generate""... $ac_c" 1>&6
2801
 
echo "configure:2802: checking whether C compiler supports -fprofile-generate" >&5
2802
 
cat > conftest.$ac_ext <<EOF
2803
 
#line 2804 "configure"
2804
 
#include "confdefs.h"
2805
 
 
2806
 
int main() {
2807
 
return 0;
2808
 
; return 0; }
2809
 
EOF
2810
 
if { (eval echo configure:2811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2811
 
  rm -rf conftest*
2812
 
   PROFILE_GEN_CFLAGS="-fprofile-generate"
2813
 
                 result="yes" 
2814
 
else
2815
 
  echo "configure: failed program was:" >&5
2816
 
  cat conftest.$ac_ext >&5
2817
 
  rm -rf conftest*
2818
 
  result="no"
2819
 
fi
2820
 
rm -f conftest*
2821
 
echo "$ac_t""$result" 1>&6
2822
 
 
2823
 
if test $result = "yes"; then
2824
 
   PROFILE_GEN_LDFLAGS="-fprofile-generate"
2825
 
   PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch"
2826
 
   PROFILE_USE_LDFLAGS="-fprofile-use"
2827
 
fi
2828
 
 
2829
 
CFLAGS="$_SAVE_CFLAGS"
2830
 
 
2831
 
if test "$GNU_CC"; then
2832
 
    echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6
2833
 
echo "configure:2834: checking for visibility(hidden) attribute" >&5
2834
 
if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then
2835
 
  echo $ac_n "(cached) $ac_c" 1>&6
2836
 
else
2837
 
  cat > conftest.c <<EOF
2838
 
        int foo __attribute__ ((visibility ("hidden"))) = 1;
2839
 
EOF
2840
 
        ac_cv_visibility_hidden=no
2841
 
        if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2842
 
            if grep '\.hidden.*foo' conftest.s >/dev/null; then
2843
 
                ac_cv_visibility_hidden=yes
2844
 
            fi
2845
 
        fi
2846
 
        rm -f conftest.cs
2847
 
        
2848
 
fi
2849
 
 
2850
 
echo "$ac_t""$ac_cv_visibility_hidden" 1>&6
2851
 
    if test "$ac_cv_visibility_hidden" = "yes"; then
2852
 
        cat >> confdefs.h <<\EOF
2853
 
#define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1
2854
 
EOF
2855
 
 
2856
 
        echo $ac_n "checking for visibility pragma support""... $ac_c" 1>&6
2857
 
echo "configure:2858: checking for visibility pragma support" >&5
2858
 
if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then
2859
 
  echo $ac_n "(cached) $ac_c" 1>&6
2860
 
else
2861
 
  cat > conftest.c <<EOF
2862
 
#pragma GCC visibility push(hidden)
2863
 
            int foo_hidden = 1;
2864
 
#pragma GCC visibility push(default)
2865
 
            int foo_default = 1;
2866
 
EOF
2867
 
            ac_cv_visibility_pragma=no
2868
 
            if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2869
 
                if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then
2870
 
                    if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then
2871
 
                        ac_cv_visibility_pragma=yes
2872
 
                    fi
2873
 
                fi
2874
 
            fi
2875
 
            rm -f conftest.cs
2876
 
            
2877
 
fi
2878
 
 
2879
 
echo "$ac_t""$ac_cv_visibility_pragma" 1>&6
2880
 
        if test "$ac_cv_visibility_pragma" = "yes"; then
2881
 
            cat >> confdefs.h <<\EOF
2882
 
#define HAVE_VISIBILITY_PRAGMA 1
2883
 
EOF
2884
 
 
2885
 
            # To work around a build problem on Linux x86-64 (Bugzilla bug
2886
 
            # 293438), we use the -fvisibility=hidden flag.  This flag is less
2887
 
            # optimal than #pragma GCC visibility push(hidden) because the flag
2888
 
            # assumes that symbols defined outside the current source file have
2889
 
            # the default visibility.  This has the advantage that we don't need
2890
 
            # to wrap system header files, but has the disadvantage that calls
2891
 
            # to hidden symbols defined in other source files cannot be
2892
 
            # optimized by the compiler.  The -fvisibility=hidden flag does
2893
 
            # hide and export symbols correctly.
2894
 
            #VISIBILITY_FLAGS='-I$(dist_includedir)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
2895
 
            #WRAP_SYSTEM_INCLUDES=1
2896
 
            VISIBILITY_FLAGS="-fvisibility=hidden"
2897
 
            WRAP_SYSTEM_INCLUDES=
2898
 
        fi
2899
 
    fi
2900
 
fi # GNU_CC
2901
 
 
2902
 
fi # SKIP_COMPILER_CHECKS
2903
 
 
2904
 
if test -z "$SKIP_PATH_CHECKS"; then
2905
 
    for ac_prog in perl5 perl
2906
 
do
2907
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
2908
 
set dummy $ac_prog; ac_word=$2
2909
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2910
 
echo "configure:2911: checking for $ac_word" >&5
2911
 
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2912
 
  echo $ac_n "(cached) $ac_c" 1>&6
2913
 
else
2914
 
  case "$PERL" in
2915
 
  /*)
2916
 
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2917
 
  ;;
2918
 
  ?:/*)                  
2919
 
  ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2920
 
  ;;
2921
 
  *)
2922
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2923
 
  ac_dummy="$PATH"
2924
 
  for ac_dir in $ac_dummy; do 
2925
 
    test -z "$ac_dir" && ac_dir=.
2926
 
    if test -f $ac_dir/$ac_word; then
2927
 
      ac_cv_path_PERL="$ac_dir/$ac_word"
2928
 
      break
2929
 
    fi
2930
 
  done
2931
 
  IFS="$ac_save_ifs"
2932
 
  ;;
2933
 
esac
2934
 
fi
2935
 
PERL="$ac_cv_path_PERL"
2936
 
if test -n "$PERL"; then
2937
 
  echo "$ac_t""$PERL" 1>&6
2938
 
else
2939
 
  echo "$ac_t""no" 1>&6
2940
 
fi
2941
 
 
2942
 
test -n "$PERL" && break
2943
 
done
2944
 
test -n "$PERL" || PERL="echo not_perl"
2945
 
 
2946
 
elif test -z "$PERL"; then
2947
 
    PERL=perl
2948
 
fi
2949
 
 
2950
 
OBJ_SUFFIX=o
2951
 
LIB_SUFFIX=a
2952
 
DLL_SUFFIX=so
2953
 
ASM_SUFFIX=s
2954
 
MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
2955
 
PR_MD_ASFILES=
2956
 
PR_MD_CSRCS=
2957
 
PR_MD_ARCH_DIR=unix
2958
 
AR_FLAGS='cr $@'
2959
 
AS='$(CC)'
2960
 
ASFLAGS='$(CFLAGS)'
2961
 
 
2962
 
if test -n "$CROSS_COMPILE"; then
2963
 
    OS_ARCH=`echo $target_os | sed -e 's|/|_|g'`
2964
 
    OS_RELEASE=
2965
 
    OS_TEST="${target_cpu}"
2966
 
    case "${target_os}" in
2967
 
        linux*)       OS_ARCH=Linux ;;
2968
 
        solaris*)     OS_ARCH=SunOS OS_RELEASE=5 ;;
2969
 
        mingw*)       OS_ARCH=WINNT ;;
2970
 
        wince*)       OS_ARCH=WINCE ;;
2971
 
        winmo*)       OS_ARCH=WINCE ;;
2972
 
        darwin*)      OS_ARCH=Darwin ;;
2973
 
        riscos*)      OS_ARCH=RISCOS ;;
2974
 
    esac
2975
 
else
2976
 
    OS_ARCH=`uname -s | sed -e 's|/|_|g'`
2977
 
    OS_RELEASE=`uname -r`
2978
 
    OS_TEST=`uname -m`
2979
 
fi
2980
 
 
2981
 
if test "$OS_ARCH" = "IRIX64"; then
2982
 
    OS_ARCH=IRIX
2983
 
fi
2984
 
 
2985
 
if test "$OS_ARCH" = "AIX"; then
2986
 
    OS_RELEASE=`uname -v`.`uname -r`
2987
 
fi
2988
 
 
2989
 
if test "$OS_ARCH" = "FreeBSD"; then
2990
 
    OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'`
2991
 
fi
2992
 
 
2993
 
if test "$OS_ARCH" = "Linux"; then
2994
 
    OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'`
2995
 
    OS_RELEASE=`echo $OS_RELEASE | awk -F\. '{ print $1 "." $2 }'`
2996
 
fi
2997
 
 
2998
 
#######################################################################
2999
 
# Master "Core Components" macros for getting the OS target           #
3000
 
#######################################################################
3001
 
 
3002
 
#
3003
 
# Note: OS_TARGET should be specified on the command line for gmake.
3004
 
# When OS_TARGET=WIN95 is specified, then a Windows 95 target is built.
3005
 
# The difference between the Win95 target and the WinNT target is that
3006
 
# the WinNT target uses Windows NT specific features not available
3007
 
# in Windows 95. The Win95 target will run on Windows NT, but (supposedly)
3008
 
# at lesser performance (the Win95 target uses threads; the WinNT target
3009
 
# uses fibers).
3010
 
#
3011
 
# If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
3012
 
# cross-compilation.
3013
 
#
3014
 
 
3015
 
#
3016
 
# The following hack allows one to build on a WIN95 machine (as if
3017
 
# s/he were cross-compiling on a WINNT host for a WIN95 target).
3018
 
# It also accomodates for MKS's uname.exe.  If you never intend
3019
 
# to do development on a WIN95 machine, you don't need this hack.
3020
 
#
3021
 
case "$OS_ARCH" in
3022
 
WIN95)
3023
 
    OS_ARCH=WINNT
3024
 
    OS_TARGET=WIN95
3025
 
    ;;
3026
 
Windows_95)
3027
 
    OS_ARCH=Windows_NT
3028
 
    OS_TARGET=WIN95
3029
 
    ;;
3030
 
Windows_98)
3031
 
    OS_ARCH=Windows_NT
3032
 
    OS_TARGET=WIN95
3033
 
    ;;
3034
 
CYGWIN_9*|CYGWIN_ME*)
3035
 
    OS_ARCH='CYGWIN_NT-4.0'
3036
 
    OS_TARGET=WIN95
3037
 
    ;;
3038
 
OS_2)
3039
 
    OS_ARCH=OS2
3040
 
    OS_TARGET=OS2
3041
 
    ;;
3042
 
esac
3043
 
 
3044
 
#
3045
 
# On WIN32, we also define the variable CPU_ARCH.
3046
 
#
3047
 
 
3048
 
case "$OS_ARCH" in
3049
 
WINNT)
3050
 
    CPU_ARCH=`uname -p`
3051
 
    if test "$CPU_ARCH" = "I386"; then
3052
 
        CPU_ARCH=x86
3053
 
    fi
3054
 
    ;;
3055
 
Windows_NT)
3056
 
#
3057
 
# If uname -s returns "Windows_NT", we assume that we are using
3058
 
# the uname.exe in MKS toolkit.
3059
 
#
3060
 
# The -r option of MKS uname only returns the major version number.
3061
 
# So we need to use its -v option to get the minor version number.
3062
 
# Moreover, it doesn't have the -p option, so we need to use uname -m.
3063
 
#
3064
 
    OS_ARCH=WINNT
3065
 
    OS_MINOR_RELEASE=`uname -v`
3066
 
    if test "$OS_MINOR_RELEASE" = "00"; then
3067
 
        OS_MINOR_RELEASE=0
3068
 
    fi
3069
 
    OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}"
3070
 
    CPU_ARCH=`uname -m`
3071
 
    #
3072
 
    # MKS's uname -m returns "586" on a Pentium machine.
3073
 
    #
3074
 
    if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
3075
 
        CPU_ARCH=x86
3076
 
    fi
3077
 
    ;;
3078
 
CYGWIN_NT*|MINGW*_NT*)
3079
 
#
3080
 
# If uname -s returns "CYGWIN_NT-4.0", we assume that we are using
3081
 
# the uname.exe in the Cygwin tools.
3082
 
# If uname -s returns MINGW32_NT-5.1, we assume that we are using
3083
 
# the uname.exe in the MSYS tools.
3084
 
#
3085
 
    OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'`
3086
 
    OS_ARCH=WINNT
3087
 
    CPU_ARCH=`uname -m`
3088
 
    #
3089
 
    # Cygwin's uname -m returns "i686" on a Pentium Pro machine.
3090
 
    #
3091
 
    if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
3092
 
        CPU_ARCH=x86
3093
 
    fi
3094
 
    ;;
3095
 
esac
3096
 
 
3097
 
if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then
3098
 
    OS_TARGET=WIN95
3099
 
    if test -n "$MOZ_DEBUG"; then
3100
 
        USE_DEBUG_RTL=1
3101
 
    fi
3102
 
fi
3103
 
if test -z "$OS_TARGET"; then
3104
 
    OS_TARGET=$OS_ARCH
3105
 
fi
3106
 
if test "$OS_TARGET" = "WIN95"; then
3107
 
    OS_RELEASE="4.0"
3108
 
fi
3109
 
OS_CONFIG="${OS_TARGET}${OS_RELEASE}"
3110
 
 
3111
 
# Check whether --enable-os2-high-mem or --disable-os2-high-mem was given.
3112
 
if test "${enable_os2_high_mem+set}" = set; then
3113
 
  enableval="$enable_os2_high_mem"
3114
 
   if test "$enableval" = "no"; then
3115
 
        MOZ_OS2_HIGH_MEMORY=
3116
 
      else
3117
 
        MOZ_OS2_HIGH_MEMORY=1
3118
 
      fi 
3119
 
fi
3120
 
 
3121
 
 
3122
 
 
3123
 
case "${CPU_ARCH}-${OS_TARGET}" in
3124
 
arm-Android)
3125
 
    MOZ_THUMB=yes
3126
 
    MOZ_ARCH=armv7-a
3127
 
    MOZ_FPU=vfp
3128
 
    MOZ_FLOAT_ABI=softfp
3129
 
    ;;
3130
 
arm-*)
3131
 
    if test -n "$MOZ_PLATFORM_MAEMO"; then
3132
 
        MOZ_THUMB=no
3133
 
        MOZ_ARCH=armv7-a
3134
 
        MOZ_FLOAT_ABI=softfp
3135
 
    fi
3136
 
    if test "$MOZ_PLATFORM_MAEMO" = 6; then
3137
 
        MOZ_THUMB=yes
3138
 
    fi
3139
 
    ;;
3140
 
esac
3141
 
 
3142
 
# Check whether --enable-thumb2 or --disable-thumb2 was given.
3143
 
if test "${enable_thumb2+set}" = set; then
3144
 
  enableval="$enable_thumb2"
3145
 
  MOZ_THUMB=$enableval
3146
 
fi
3147
 
 
3148
 
 
3149
 
# Check whether --with-thumb or --without-thumb was given.
3150
 
if test "${with_thumb+set}" = set; then
3151
 
  withval="$with_thumb"
3152
 
  if test -z "$GNU_CC"; then
3153
 
        { echo "configure: error: --with-thumb is not supported on non-GNU toolchain-defaults" 1>&2; exit 1; }
3154
 
    fi
3155
 
    MOZ_THUMB=$withval
3156
 
fi
3157
 
 
3158
 
 
3159
 
# Check whether --with-thumb-interwork or --without-thumb-interwork was given.
3160
 
if test "${with_thumb_interwork+set}" = set; then
3161
 
  withval="$with_thumb_interwork"
3162
 
  if test -z "$GNU_CC"; then
3163
 
        { echo "configure: error: --with-thumb-interwork is not supported on non-GNU toolchain-defaults" 1>&2; exit 1; }
3164
 
    fi
3165
 
    MOZ_THUMB_INTERWORK=$withval
3166
 
fi
3167
 
 
3168
 
 
3169
 
# Check whether --with-arch or --without-arch was given.
3170
 
if test "${with_arch+set}" = set; then
3171
 
  withval="$with_arch"
3172
 
  if test -z "$GNU_CC"; then
3173
 
        { echo "configure: error: --with-arch is not supported on non-GNU toolchain-defaults" 1>&2; exit 1; }
3174
 
    fi
3175
 
    MOZ_ARCH=$withval
3176
 
fi
3177
 
 
3178
 
 
3179
 
# Check whether --with-fpu or --without-fpu was given.
3180
 
if test "${with_fpu+set}" = set; then
3181
 
  withval="$with_fpu"
3182
 
  if test -z "$GNU_CC"; then
3183
 
        { echo "configure: error: --with-fpu is not supported on non-GNU toolchain-defaults" 1>&2; exit 1; }
3184
 
    fi
3185
 
    MOZ_FPU=$withval
3186
 
fi
3187
 
 
3188
 
 
3189
 
# Check whether --with-float-abi or --without-float-abi was given.
3190
 
if test "${with_float_abi+set}" = set; then
3191
 
  withval="$with_float_abi"
3192
 
  if test -z "$GNU_CC"; then
3193
 
        { echo "configure: error: --with-float-abi is not supported on non-GNU toolchain-defaults" 1>&2; exit 1; }
3194
 
    fi
3195
 
    MOZ_FLOAT_ABI=$withval
3196
 
fi
3197
 
 
3198
 
 
3199
 
# Check whether --with-soft-float or --without-soft-float was given.
3200
 
if test "${with_soft_float+set}" = set; then
3201
 
  withval="$with_soft_float"
3202
 
  if test -z "$GNU_CC"; then
3203
 
        { echo "configure: error: --with-soft-float is not supported on non-GNU toolchain-defaults" 1>&2; exit 1; }
3204
 
    fi
3205
 
    MOZ_SOFT_FLOAT=$withval
3206
 
fi
3207
 
 
3208
 
 
3209
 
case "$MOZ_ARCH" in
3210
 
toolchain-default|"")
3211
 
    arch_flag=""
3212
 
    ;;
3213
 
*)
3214
 
    arch_flag="-march=$MOZ_ARCH"
3215
 
    ;;
3216
 
esac
3217
 
 
3218
 
case "$MOZ_THUMB" in
3219
 
yes)
3220
 
    MOZ_THUMB2=1
3221
 
    thumb_flag="-mthumb"
3222
 
    ;;
3223
 
no)
3224
 
    MOZ_THUMB2=
3225
 
    thumb_flag="-marm"
3226
 
    ;;
3227
 
*)
3228
 
    _SAVE_CFLAGS="$CFLAGS"
3229
 
    CFLAGS="$arch_flag"
3230
 
    cat > conftest.$ac_ext <<EOF
3231
 
#line 3232 "configure"
3232
 
#include "confdefs.h"
3233
 
 
3234
 
int main() {
3235
 
return sizeof(__thumb2__);
3236
 
; return 0; }
3237
 
EOF
3238
 
if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3239
 
  rm -rf conftest*
3240
 
  MOZ_THUMB2=1
3241
 
else
3242
 
  echo "configure: failed program was:" >&5
3243
 
  cat conftest.$ac_ext >&5
3244
 
  rm -rf conftest*
3245
 
  MOZ_THUMB2=
3246
 
fi
3247
 
rm -f conftest*
3248
 
    CFLAGS="$_SAVE_CFLAGS"
3249
 
    thumb_flag=""
3250
 
    ;;
3251
 
esac
3252
 
 
3253
 
case "$MOZ_THUMB_INTERWORK" in
3254
 
yes)
3255
 
    thumb_interwork_flag="-mthumb-interwork"
3256
 
    ;;
3257
 
no)
3258
 
    thumb_interwork_flag="-mno-thumb-interwork"
3259
 
    ;;
3260
 
*) # toolchain-default
3261
 
    thumb_interwork_flag=""
3262
 
    ;;
3263
 
esac
3264
 
 
3265
 
case "$MOZ_FPU" in
3266
 
toolchain-default|"")
3267
 
    fpu_flag=""
3268
 
    ;;
3269
 
*)
3270
 
    fpu_flag="-mfpu=$MOZ_FPU"
3271
 
    ;;
3272
 
esac
3273
 
 
3274
 
case "$MOZ_FLOAT_ABI" in
3275
 
toolchain-default|"")
3276
 
    float_abi_flag=""
3277
 
    ;;
3278
 
*)
3279
 
    float_abi_flag="-mfloat-abi=$MOZ_FLOAT_ABI"
3280
 
    ;;
3281
 
esac
3282
 
 
3283
 
case "$MOZ_SOFT_FLOAT" in
3284
 
yes)
3285
 
    soft_float_flag="-msoft-float"
3286
 
    ;;
3287
 
no)
3288
 
    soft_float_flag="-mno-soft-float"
3289
 
    ;;
3290
 
*) # toolchain-default
3291
 
    soft_float_flag=""
3292
 
    ;;
3293
 
esac
3294
 
 
3295
 
all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag`
3296
 
if test -n "$all_flags"; then
3297
 
    _SAVE_CFLAGS="$CFLAGS"
3298
 
    CFLAGS="$all_flags"
3299
 
    echo $ac_n "checking whether the chosen combination of compiler flags ($all_flags) works""... $ac_c" 1>&6
3300
 
echo "configure:3301: checking whether the chosen combination of compiler flags ($all_flags) works" >&5
3301
 
    cat > conftest.$ac_ext <<EOF
3302
 
#line 3303 "configure"
3303
 
#include "confdefs.h"
3304
 
 
3305
 
int main() {
3306
 
return 0;
3307
 
; return 0; }
3308
 
EOF
3309
 
if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3310
 
  rm -rf conftest*
3311
 
  echo "$ac_t""yes" 1>&6
3312
 
else
3313
 
  echo "configure: failed program was:" >&5
3314
 
  cat conftest.$ac_ext >&5
3315
 
  rm -rf conftest*
3316
 
  { echo "configure: error: no" 1>&2; exit 1; }
3317
 
fi
3318
 
rm -f conftest*
3319
 
 
3320
 
    CFLAGS="$_SAVE_CFLAGS $all_flags"
3321
 
    CXXFLAGS="$CXXFLAGS $all_flags"
3322
 
    ASFLAGS="$ASFLAGS $all_flags"
3323
 
    if test -n "$thumb_flag"; then
3324
 
        LDFLAGS="$LDFLAGS $thumb_flag"
3325
 
    fi
3326
 
fi
3327
 
 
3328
 
case "$host" in
3329
 
*-mingw*)
3330
 
    NSINSTALL=nsinstall
3331
 
    ;;
3332
 
*-cygwin*|*-msvc*|*-mks*|*-wince*|*-winmo*)
3333
 
    NSINSTALL='$(CYGWIN_WRAPPER) nsinstall'
3334
 
    if test `echo "${PATH}" | grep -c \;` = 0; then
3335
 
        CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper'
3336
 
    fi
3337
 
    ;;
3338
 
*-beos*)
3339
 
    HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE"
3340
 
    ;;
3341
 
*os2*)
3342
 
    ;;
3343
 
*)
3344
 
    HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
3345
 
    ;;
3346
 
esac
3347
 
 
3348
 
case "$target" in
3349
 
 
3350
 
*-aix*)
3351
 
    cat >> confdefs.h <<\EOF
3352
 
#define XP_UNIX 1
3353
 
EOF
3354
 
 
3355
 
    cat >> confdefs.h <<\EOF
3356
 
#define AIX 1
3357
 
EOF
3358
 
 
3359
 
    cat >> confdefs.h <<\EOF
3360
 
#define SYSV 1
3361
 
EOF
3362
 
 
3363
 
    DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
3364
 
    ac_safe=`echo "sys/atomic_op.h" | sed 'y%./+-%__p_%'`
3365
 
echo $ac_n "checking for sys/atomic_op.h""... $ac_c" 1>&6
3366
 
echo "configure:3367: checking for sys/atomic_op.h" >&5
3367
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3368
 
  echo $ac_n "(cached) $ac_c" 1>&6
3369
 
else
3370
 
  cat > conftest.$ac_ext <<EOF
3371
 
#line 3372 "configure"
3372
 
#include "confdefs.h"
3373
 
#include <sys/atomic_op.h>
3374
 
EOF
3375
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3376
 
{ (eval echo configure:3377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3377
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3378
 
if test -z "$ac_err"; then
3379
 
  rm -rf conftest*
3380
 
  eval "ac_cv_header_$ac_safe=yes"
3381
 
else
3382
 
  echo "$ac_err" >&5
3383
 
  echo "configure: failed program was:" >&5
3384
 
  cat conftest.$ac_ext >&5
3385
 
  rm -rf conftest*
3386
 
  eval "ac_cv_header_$ac_safe=no"
3387
 
fi
3388
 
rm -f conftest*
3389
 
fi
3390
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3391
 
  echo "$ac_t""yes" 1>&6
3392
 
  cat >> confdefs.h <<\EOF
3393
 
#define AIX_HAVE_ATOMIC_OP_H 1
3394
 
EOF
3395
 
 
3396
 
else
3397
 
  echo "$ac_t""no" 1>&6
3398
 
fi
3399
 
 
3400
 
    case "${target_os}" in
3401
 
    aix3.2*)
3402
 
        cat >> confdefs.h <<\EOF
3403
 
#define AIX_RENAME_SELECT 1
3404
 
EOF
3405
 
 
3406
 
        cat >> confdefs.h <<\EOF
3407
 
#define _PR_NO_LARGE_FILES 1
3408
 
EOF
3409
 
 
3410
 
        AIX_LINK_OPTS='-bnso -berok'
3411
 
        PR_MD_ASFILES=os_AIX.s
3412
 
        ;;
3413
 
    aix4.1*)
3414
 
        cat >> confdefs.h <<\EOF
3415
 
#define AIX_TIMERS 1
3416
 
EOF
3417
 
 
3418
 
        cat >> confdefs.h <<\EOF
3419
 
#define _PR_NO_LARGE_FILES 1
3420
 
EOF
3421
 
 
3422
 
        cat >> confdefs.h <<\EOF
3423
 
#define AIX4_1 1
3424
 
EOF
3425
 
 
3426
 
        MKSHLIB=
3427
 
        DSO_LDOPTS=
3428
 
        AIX_LINK_OPTS='-bnso -berok'
3429
 
        LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr'
3430
 
        LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr'
3431
 
        ;;
3432
 
    aix4.2*)
3433
 
        cat >> confdefs.h <<\EOF
3434
 
#define AIX_TIMERS 1
3435
 
EOF
3436
 
 
3437
 
        cat >> confdefs.h <<\EOF
3438
 
#define _PR_HAVE_OFF64_T 1
3439
 
EOF
3440
 
 
3441
 
        AIX_LINK_OPTS='-brtl -bnso -berok'
3442
 
        ;;
3443
 
    aix4.3*)
3444
 
        cat >> confdefs.h <<\EOF
3445
 
#define AIX_TIMERS 1
3446
 
EOF
3447
 
 
3448
 
        cat >> confdefs.h <<\EOF
3449
 
#define _PR_HAVE_OFF64_T 1
3450
 
EOF
3451
 
 
3452
 
        cat >> confdefs.h <<\EOF
3453
 
#define AIX4_3_PLUS 1
3454
 
EOF
3455
 
 
3456
 
        cat >> confdefs.h <<\EOF
3457
 
#define HAVE_SOCKLEN_T 1
3458
 
EOF
3459
 
 
3460
 
        cat >> confdefs.h <<\EOF
3461
 
#define HAVE_FCNTL_FILE_LOCKING 1
3462
 
EOF
3463
 
 
3464
 
        USE_IPV6=1
3465
 
        AIX_LINK_OPTS='-brtl -bnso -berok'
3466
 
        ;;
3467
 
    *)
3468
 
        cat >> confdefs.h <<\EOF
3469
 
#define AIX_TIMERS 1
3470
 
EOF
3471
 
 
3472
 
        cat >> confdefs.h <<\EOF
3473
 
#define _PR_HAVE_OFF64_T 1
3474
 
EOF
3475
 
 
3476
 
        cat >> confdefs.h <<\EOF
3477
 
#define AIX4_3_PLUS 1
3478
 
EOF
3479
 
 
3480
 
        cat >> confdefs.h <<\EOF
3481
 
#define HAVE_SOCKLEN_T 1
3482
 
EOF
3483
 
 
3484
 
        cat >> confdefs.h <<\EOF
3485
 
#define HAVE_FCNTL_FILE_LOCKING 1
3486
 
EOF
3487
 
 
3488
 
        USE_IPV6=1
3489
 
        AIX_LINK_OPTS='-brtl -bnso -berok'
3490
 
        ;;
3491
 
    esac
3492
 
    CFLAGS="$CFLAGS -qro -qroconst"
3493
 
    AIX_WRAP='$(DIST)/lib/aixwrap.o'
3494
 
    AIX_TMP='./_aix_tmp.o'
3495
 
    if test -n "$USE_64"; then
3496
 
        MDCPUCFG_H=_aix64.cfg
3497
 
        OBJECT_MODE=64
3498
 
    else
3499
 
        MDCPUCFG_H=_aix32.cfg
3500
 
    fi
3501
 
    PR_MD_CSRCS=aix.c
3502
 
    RESOLVE_LINK_SYMBOLS=1
3503
 
    ;;
3504
 
        
3505
 
*-android*|*-linuxandroid*)
3506
 
    if test -z "$USE_NSPR_THREADS"; then
3507
 
        USE_PTHREADS=1
3508
 
        IMPL_STRATEGY=_PTH
3509
 
    fi
3510
 
    cat >> confdefs.h <<\EOF
3511
 
#define XP_UNIX 1
3512
 
EOF
3513
 
 
3514
 
    cat >> confdefs.h <<\EOF
3515
 
#define _GNU_SOURCE 1
3516
 
EOF
3517
 
 
3518
 
    cat >> confdefs.h <<\EOF
3519
 
#define HAVE_FCNTL_FILE_LOCKING 1
3520
 
EOF
3521
 
 
3522
 
    cat >> confdefs.h <<\EOF
3523
 
#define LINUX 1
3524
 
EOF
3525
 
 
3526
 
    CFLAGS="$CFLAGS -Wall"
3527
 
    CXXFLAGS="$CXXFLAGS -Wall"
3528
 
    MDCPUCFG_H=_linux.cfg
3529
 
    PR_MD_CSRCS=linux.c
3530
 
    MKSHLIB='$(CC) $(DSO_LDOPTS) $(WRAP_MALLOC_LIB) -o $@'
3531
 
    DSO_CFLAGS=-fPIC
3532
 
    DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
3533
 
    _OPTIMIZE_FLAGS=-O2
3534
 
    _DEBUG_FLAGS="-g -fno-inline"  # most people on linux use gcc/gdb, and that
3535
 
                                   # combo is not yet good at debugging inlined
3536
 
                                   # functions (even when using DWARF2 as the
3537
 
                                   # debugging format)
3538
 
    COMPILER_TAG=_glibc
3539
 
    CPU_ARCH=arm
3540
 
    CPU_ARCH_TAG=_arm
3541
 
    OS_TARGET=Android
3542
 
    ;;
3543
 
 
3544
 
*-beos*)
3545
 
    cat >> confdefs.h <<\EOF
3546
 
#define XP_BEOS 1
3547
 
EOF
3548
 
 
3549
 
    cat >> confdefs.h <<\EOF
3550
 
#define BeOS 1
3551
 
EOF
3552
 
 
3553
 
    cat >> confdefs.h <<\EOF
3554
 
#define BEOS 1
3555
 
EOF
3556
 
 
3557
 
    cat >> confdefs.h <<\EOF
3558
 
#define _POSIX_SOURCE 1
3559
 
EOF
3560
 
 
3561
 
    DSO_LDOPTS=-nostart
3562
 
    MDCPUCFG_H=_beos.cfg
3563
 
    USE_BTHREADS=1
3564
 
    PR_MD_ARCH_DIR=beos
3565
 
    RESOLVE_LINK_SYMBOLS=1
3566
 
    case "${target_cpu}" in
3567
 
    i*86)
3568
 
        _OPTIMIZE_FLAGS=-O2
3569
 
        _DEBUG_FLAGS='-gdwarf-2 -O0'
3570
 
        MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
3571
 
        echo $ac_n "checking for gethostbyaddr in -lbind""... $ac_c" 1>&6
3572
 
echo "configure:3573: checking for gethostbyaddr in -lbind" >&5
3573
 
ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'`
3574
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3575
 
  echo $ac_n "(cached) $ac_c" 1>&6
3576
 
else
3577
 
  ac_save_LIBS="$LIBS"
3578
 
LIBS="-lbind  $LIBS"
3579
 
cat > conftest.$ac_ext <<EOF
3580
 
#line 3581 "configure"
3581
 
#include "confdefs.h"
3582
 
/* Override any gcc2 internal prototype to avoid an error.  */
3583
 
/* We use char because int might match the return type of a gcc2
3584
 
    builtin and then its argument prototype would still apply.  */
3585
 
char gethostbyaddr();
3586
 
 
3587
 
int main() {
3588
 
gethostbyaddr()
3589
 
; return 0; }
3590
 
EOF
3591
 
if { (eval echo configure:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3592
 
  rm -rf conftest*
3593
 
  eval "ac_cv_lib_$ac_lib_var=yes"
3594
 
else
3595
 
  echo "configure: failed program was:" >&5
3596
 
  cat conftest.$ac_ext >&5
3597
 
  rm -rf conftest*
3598
 
  eval "ac_cv_lib_$ac_lib_var=no"
3599
 
fi
3600
 
rm -f conftest*
3601
 
LIBS="$ac_save_LIBS"
3602
 
 
3603
 
fi
3604
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3605
 
  echo "$ac_t""yes" 1>&6
3606
 
  OS_LIBS="$OS_LIBS -lbind -lsocket"
3607
 
else
3608
 
  echo "$ac_t""no" 1>&6
3609
 
fi
3610
 
 
3611
 
        ;;
3612
 
    powerpc)
3613
 
        CC=mwcc
3614
 
        CCC=mwcc
3615
 
        LD=mwld
3616
 
        DSO_LDOPTS='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o'
3617
 
        _OPTIMIZE_FLAGS=-O2    
3618
 
        _DEBUG_FLAGS='-g -O0'
3619
 
        ;;
3620
 
    esac
3621
 
    ;;
3622
 
 
3623
 
*-bsdi*)
3624
 
    cat >> confdefs.h <<\EOF
3625
 
#define XP_UNIX 1
3626
 
EOF
3627
 
 
3628
 
    cat >> confdefs.h <<\EOF
3629
 
#define BSDI 1
3630
 
EOF
3631
 
 
3632
 
    cat >> confdefs.h <<\EOF
3633
 
#define NEED_BSDREGEX 1
3634
 
EOF
3635
 
 
3636
 
 
3637
 
    CFLAGS="$CFLAGS -Wall -Wno-format"
3638
 
    CXXFLAGS="$CXXFLAGS -Wall -Wno-format"
3639
 
 
3640
 
    if echo "$OS_TEST" | grep -c 86 >/dev/null; then
3641
 
        CPU_ARCH=x86
3642
 
    elif echo "$OS_TEST" | grep -c sparc >/dev/null; then 
3643
 
        CPU_ARCH=sparc
3644
 
    fi
3645
 
 
3646
 
    MDCPUCFG_H=_bsdi.cfg
3647
 
    PR_MD_CSRCS=bsdi.c
3648
 
 
3649
 
    DSO_LDOPTS=-r
3650
 
 
3651
 
    case "$target_os" in
3652
 
    bsdi1.1*)
3653
 
        cat >> confdefs.h <<\EOF
3654
 
#define _PR_BSDI_JMPBUF_IS_ARRAY 1
3655
 
EOF
3656
 
 
3657
 
        cat >> confdefs.h <<\EOF
3658
 
#define _PR_STAT_HAS_ONLY_ST_ATIME 1
3659
 
EOF
3660
 
 
3661
 
        cat >> confdefs.h <<\EOF
3662
 
#define _PR_NEED_H_ERRNO 1
3663
 
EOF
3664
 
 
3665
 
        MKSHLIB=
3666
 
        DSO_CFLAGS=
3667
 
        DSO_LDOPTS=
3668
 
        ;;
3669
 
 
3670
 
    bsdi2.1*)
3671
 
        cat >> confdefs.h <<\EOF
3672
 
#define _PR_TIMESPEC_HAS_TS_SEC 1
3673
 
EOF
3674
 
 
3675
 
        cat >> confdefs.h <<\EOF
3676
 
#define _PR_BSDI_JMPBUF_IS_ARRAY 1
3677
 
EOF
3678
 
 
3679
 
        cat >> confdefs.h <<\EOF
3680
 
#define HAVE_DLL 1
3681
 
EOF
3682
 
 
3683
 
        cat >> confdefs.h <<\EOF
3684
 
#define USE_DLFCN 1
3685
 
EOF
3686
 
 
3687
 
        cat >> confdefs.h <<\EOF
3688
 
#define _PR_STAT_HAS_ST_ATIMESPEC 1
3689
 
EOF
3690
 
 
3691
 
        PR_MD_ASFILES=os_BSD_OS_386_2.s
3692
 
        ;;
3693
 
 
3694
 
    bsdi4.* | bsdi5.*)
3695
 
        cat >> confdefs.h <<\EOF
3696
 
#define _PR_SELECT_CONST_TIMEVAL 1
3697
 
EOF
3698
 
 
3699
 
        cat >> confdefs.h <<\EOF
3700
 
#define _PR_BSDI_JMPBUF_IS_STRUCT 1
3701
 
EOF
3702
 
 
3703
 
        cat >> confdefs.h <<\EOF
3704
 
#define HAVE_DLL 1
3705
 
EOF
3706
 
 
3707
 
        cat >> confdefs.h <<\EOF
3708
 
#define USE_DLFCN 1
3709
 
EOF
3710
 
 
3711
 
        cat >> confdefs.h <<\EOF
3712
 
#define _PR_STAT_HAS_ST_ATIMESPEC 1
3713
 
EOF
3714
 
 
3715
 
        MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
3716
 
        DSO_CFLAGS=-fPIC
3717
 
        DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)'
3718
 
        STRIP="$STRIP -d"
3719
 
        case "$target_os" in
3720
 
        bsdi4.2* | bsdi4.3* | bsdi5.*)
3721
 
            cat >> confdefs.h <<\EOF
3722
 
#define _PR_HAVE_GETPROTO_R 1
3723
 
EOF
3724
 
 
3725
 
            cat >> confdefs.h <<\EOF
3726
 
#define _PR_HAVE_GETPROTO_R_POINTER 1
3727
 
EOF
3728
 
 
3729
 
            ;;
3730
 
        esac
3731
 
        ;;
3732
 
    *)
3733
 
        cat >> confdefs.h <<\EOF
3734
 
#define _PR_SELECT_CONST_TIMEVAL 1
3735
 
EOF
3736
 
 
3737
 
        cat >> confdefs.h <<\EOF
3738
 
#define _PR_BSDI_JMPBUF_IS_STRUCT 1
3739
 
EOF
3740
 
 
3741
 
        cat >> confdefs.h <<\EOF
3742
 
#define HAVE_DLL 1
3743
 
EOF
3744
 
 
3745
 
        cat >> confdefs.h <<\EOF
3746
 
#define USE_DLFCN 1
3747
 
EOF
3748
 
 
3749
 
        cat >> confdefs.h <<\EOF
3750
 
#define _PR_STAT_HAS_ST_ATIMESPEC 1
3751
 
EOF
3752
 
 
3753
 
        ;;
3754
 
    esac
3755
 
 
3756
 
    ;;
3757
 
 
3758
 
*-darwin*)
3759
 
    cat >> confdefs.h <<\EOF
3760
 
#define XP_UNIX 1
3761
 
EOF
3762
 
 
3763
 
    cat >> confdefs.h <<\EOF
3764
 
#define DARWIN 1
3765
 
EOF
3766
 
 
3767
 
    cat >> confdefs.h <<\EOF
3768
 
#define HAVE_BSD_FLOCK 1
3769
 
EOF
3770
 
 
3771
 
    cat >> confdefs.h <<\EOF
3772
 
#define HAVE_SOCKLEN_T 1
3773
 
EOF
3774
 
 
3775
 
    AS='$(CC) -x assembler-with-cpp'
3776
 
    CFLAGS="$CFLAGS -Wall -fno-common"
3777
 
    case "${target_cpu}" in
3778
 
        i*86*)
3779
 
            if test -n "$USE_64"; then
3780
 
                CPU_ARCH=x86_64
3781
 
            else        
3782
 
                CPU_ARCH=i386
3783
 
            fi
3784
 
            ;;
3785
 
        *)
3786
 
            CPU_ARCH=ppc
3787
 
            ;;
3788
 
    esac
3789
 
    if test "`echo $CC | grep -c '\-arch '`" = "0"; then
3790
 
        CC="$CC -arch $CPU_ARCH"
3791
 
    fi
3792
 
    DSO_CFLAGS=-fPIC
3793
 
    DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
3794
 
    _OPTIMIZE_FLAGS=-O2
3795
 
    MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
3796
 
    STRIP="$STRIP -x -S"
3797
 
    DLL_SUFFIX=dylib
3798
 
    USE_PTHREADS=1
3799
 
    MDCPUCFG_H=_darwin.cfg
3800
 
    PR_MD_CSRCS=darwin.c
3801
 
    PR_MD_ASFILES=os_Darwin.s
3802
 
 
3803
 
    # Add Mac OS X support for loading CFM & CFBundle plugins
3804
 
    if test -f "${MACOS_SDK_DIR}/System/Library/Frameworks/Carbon.framework/Carbon"; then
3805
 
        cat >> confdefs.h <<\EOF
3806
 
#define XP_MACOSX 1
3807
 
EOF
3808
 
 
3809
 
        OS_TARGET=MacOSX
3810
 
 
3811
 
        if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then
3812
 
                        export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET
3813
 
        elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then
3814
 
                                                case "${target_cpu}" in
3815
 
                powerpc*)
3816
 
                                        export MACOSX_DEPLOYMENT_TARGET=10.2
3817
 
                    ;;
3818
 
                i*86*)
3819
 
                                        export MACOSX_DEPLOYMENT_TARGET=10.4
3820
 
                    ;;
3821
 
            esac
3822
 
        fi
3823
 
 
3824
 
                        
3825
 
        if test "$MACOS_SDK_DIR"; then
3826
 
            
3827
 
            if test ! -d "$MACOS_SDK_DIR"; then
3828
 
                { echo "configure: error: SDK not found.  When using --with-macos-sdk, you must
3829
 
specify a valid SDK.  SDKs are installed when the optional cross-development
3830
 
tools are selected during the Xcode/Developer Tools installation." 1>&2; exit 1; }
3831
 
            fi
3832
 
 
3833
 
            
3834
 
            CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'`
3835
 
            GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'`
3836
 
            GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'`
3837
 
            
3838
 
            GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'`
3839
 
            if test "$GCC_VERSION_MAJOR" -lt "4" ; then
3840
 
                SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System/Library/Frameworks"
3841
 
                if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then
3842
 
                    SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library/Frameworks"
3843
 
                fi
3844
 
 
3845
 
                SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}"
3846
 
 
3847
 
                CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}"
3848
 
 
3849
 
                                CPP="$CPP -nostdinc ${SDK_C_INCLUDE}"
3850
 
 
3851
 
                
3852
 
                HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'`
3853
 
                
3854
 
                if test "$HOST_DARWIN_MAJOR" -lt 9 ; then
3855
 
                                                                                                                        MACOS_SDK_LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin -L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION_FULL} -L${MACOS_SDK_DIR}/usr/lib ${SDK_C_FRAMEWORK}"
3856
 
                else
3857
 
                                                                                                                                                                                                        MACOS_SDK_LIBS="-Wl,-syslibroot,${MACOS_SDK_DIR}"
3858
 
                fi
3859
 
 
3860
 
                LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS"
3861
 
                export NEXT_ROOT=$MACOS_SDK_DIR
3862
 
 
3863
 
                if test -n "$CROSS_COMPILE" ; then
3864
 
                                                                                HOST_CC="NEXT_ROOT= $HOST_CC"
3865
 
                    HOST_CXX="NEXT_ROOT= $HOST_CXX"
3866
 
                fi
3867
 
            else
3868
 
                                                CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}"
3869
 
 
3870
 
                                CPP="$CPP -isysroot ${MACOS_SDK_DIR}"
3871
 
 
3872
 
                                                                                if test "$GCC_VERSION_FULL" != "4.0.0" ; then
3873
 
                                                            LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}"
3874
 
                else
3875
 
                                                            LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}"
3876
 
                fi
3877
 
            fi
3878
 
        fi
3879
 
    fi
3880
 
    ;;
3881
 
 
3882
 
*-dgux*)
3883
 
    cat >> confdefs.h <<\EOF
3884
 
#define XP_UNIX 1
3885
 
EOF
3886
 
 
3887
 
    cat >> confdefs.h <<\EOF
3888
 
#define _PR_LOCAL_THREADS_ONLY 1
3889
 
EOF
3890
 
 
3891
 
    cat >> confdefs.h <<\EOF
3892
 
#define SVR4 1
3893
 
EOF
3894
 
 
3895
 
    cat >> confdefs.h <<\EOF
3896
 
#define SYSV 1
3897
 
EOF
3898
 
 
3899
 
    cat >> confdefs.h <<\EOF
3900
 
#define DGUX 1
3901
 
EOF
3902
 
 
3903
 
    cat >> confdefs.h <<\EOF
3904
 
#define _DGUX_SOURCE 1
3905
 
EOF
3906
 
 
3907
 
    cat >> confdefs.h <<\EOF
3908
 
#define _POSIX4A_DRAFT6_SOURCE 1
3909
 
EOF
3910
 
 
3911
 
    DSO_LDOPTS=-G
3912
 
    _OPTIMIZE_FLAGS=-O2
3913
 
    _DEBUG_FLAGS=
3914
 
    MDCPUCFG_H=_dgux.cfg
3915
 
    PR_MD_CSRCS=dgux.c
3916
 
    ;;
3917
 
 
3918
 
*-freebsd*)
3919
 
    if test -z "$USE_NSPR_THREADS"; then
3920
 
        USE_PTHREADS=1
3921
 
    fi
3922
 
    cat >> confdefs.h <<\EOF
3923
 
#define XP_UNIX 1
3924
 
EOF
3925
 
 
3926
 
    cat >> confdefs.h <<\EOF
3927
 
#define FREEBSD 1
3928
 
EOF
3929
 
 
3930
 
    cat >> confdefs.h <<\EOF
3931
 
#define HAVE_BSD_FLOCK 1
3932
 
EOF
3933
 
 
3934
 
    cat >> confdefs.h <<\EOF
3935
 
#define HAVE_SOCKLEN_T 1
3936
 
EOF
3937
 
 
3938
 
    CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
3939
 
    MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
3940
 
    if test "$MOZ_OBJFORMAT" = "elf"; then
3941
 
        DLL_SUFFIX=so
3942
 
    else
3943
 
        DLL_SUFFIX=so.1.0
3944
 
    fi
3945
 
    MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
3946
 
    DSO_CFLAGS=-fPIC
3947
 
    DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
3948
 
    MDCPUCFG_H=_freebsd.cfg
3949
 
    PR_MD_CSRCS=freebsd.c
3950
 
    ;;
3951
 
 
3952
 
*-hpux*)
3953
 
    cat >> confdefs.h <<\EOF
3954
 
#define XP_UNIX 1
3955
 
EOF
3956
 
 
3957
 
    cat >> confdefs.h <<\EOF
3958
 
#define HPUX 1
3959
 
EOF
3960
 
 
3961
 
    cat >> confdefs.h <<\EOF
3962
 
#define _HPUX_SOURCE 1
3963
 
EOF
3964
 
 
3965
 
    # OSF1 and HPUX report the POLLHUP event for a socket when the
3966
 
    # shutdown(SHUT_WR) operation is called for the remote end, even though
3967
 
    # the socket is still writeable. Use select(), instead of poll(), to
3968
 
    # workaround this problem.
3969
 
    cat >> confdefs.h <<\EOF
3970
 
#define _PR_POLL_WITH_SELECT 1
3971
 
EOF
3972
 
 
3973
 
    cat >> confdefs.h <<\EOF
3974
 
#define _USE_BIG_FDS 1
3975
 
EOF
3976
 
 
3977
 
    DSO_LDOPTS='-b +h $(notdir $@)'
3978
 
    PR_MD_CSRCS=hpux.c
3979
 
    if test "$OS_TEST" = "ia64"; then
3980
 
        DLL_SUFFIX=so
3981
 
        DSO_LDOPTS="$DSO_LDOPTS +b '\$\$ORIGIN'"
3982
 
        CPU_ARCH_TAG=_$OS_TEST 
3983
 
        if test -z "$USE_64"; then
3984
 
            COMPILER_TAG=_32
3985
 
        fi
3986
 
        PR_MD_ASFILES=os_HPUX_ia64.s
3987
 
    else
3988
 
        cat >> confdefs.h <<\EOF
3989
 
#define hppa 1
3990
 
EOF
3991
 
 
3992
 
        DLL_SUFFIX=sl
3993
 
        PR_MD_ASFILES=os_HPUX.s
3994
 
    fi
3995
 
    if test -n "$USE_64"; then
3996
 
        MDCPUCFG_H=_hpux64.cfg
3997
 
    else
3998
 
        MDCPUCFG_H=_hpux32.cfg
3999
 
    fi
4000
 
    if test -z "$GNU_CC"; then
4001
 
        CC="$CC -Ae"
4002
 
        CXX="$CXX -ext"
4003
 
        DSO_CFLAGS=+Z
4004
 
    else
4005
 
        DSO_CFLAGS=-fPIC
4006
 
        ASFLAGS="$ASFLAGS -x assembler-with-cpp"
4007
 
    fi
4008
 
 
4009
 
    if test -n "$MOZILLA_CLIENT"; then
4010
 
        DEFAULT_IMPL_STRATEGY=_EMU
4011
 
    fi
4012
 
 
4013
 
    if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then
4014
 
        cat >> confdefs.h <<\EOF
4015
 
#define _PR_NEED_H_ERRNO 1
4016
 
EOF
4017
 
 
4018
 
        cat >> confdefs.h <<\EOF
4019
 
#define HPUX9 1
4020
 
EOF
4021
 
 
4022
 
        DEFAULT_IMPL_STRATEGY=_EMU
4023
 
        USE_NSPR_THREADS=1
4024
 
    fi
4025
 
 
4026
 
    if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then
4027
 
        cat >> confdefs.h <<\EOF
4028
 
#define _PR_NO_LARGE_FILES 1
4029
 
EOF
4030
 
 
4031
 
    fi
4032
 
 
4033
 
    if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
4034
 
        cat >> confdefs.h <<\EOF
4035
 
#define _PR_NEED_H_ERRNO 1
4036
 
EOF
4037
 
 
4038
 
    fi
4039
 
 
4040
 
    if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
4041
 
        cat >> confdefs.h <<\EOF
4042
 
#define HAVE_INT_LOCALTIME_R 1
4043
 
EOF
4044
 
 
4045
 
    fi
4046
 
 
4047
 
    if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then
4048
 
        cat >> confdefs.h <<\EOF
4049
 
#define HAVE_POINTER_LOCALTIME_R 1
4050
 
EOF
4051
 
 
4052
 
    fi
4053
 
 
4054
 
    # HP-UX 11i v2 (B.11.23) or higher
4055
 
    
4056
 
    case "$OS_RELEASE" in
4057
 
    [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*)
4058
 
        USE_IPV6=1
4059
 
        ;;
4060
 
    esac
4061
 
    
4062
 
 
4063
 
    if test "$OS_RELEASE" = "B.10.01"; then
4064
 
        cat >> confdefs.h <<\EOF
4065
 
#define HPUX10 1
4066
 
EOF
4067
 
 
4068
 
        DEFAULT_IMPL_STRATEGY=_EMU
4069
 
    fi
4070
 
 
4071
 
    if test "$OS_RELEASE" = "B.10.10"; then
4072
 
        cat >> confdefs.h <<\EOF
4073
 
#define HPUX10 1
4074
 
EOF
4075
 
 
4076
 
        cat >> confdefs.h <<\EOF
4077
 
#define HPUX10_10 1
4078
 
EOF
4079
 
 
4080
 
        DEFAULT_IMPL_STRATEGY=_PTH
4081
 
    fi
4082
 
 
4083
 
    if test "$OS_RELEASE" = "B.10.20"; then
4084
 
        cat >> confdefs.h <<\EOF
4085
 
#define HPUX10 1
4086
 
EOF
4087
 
 
4088
 
        cat >> confdefs.h <<\EOF
4089
 
#define HPUX10_20 1
4090
 
EOF
4091
 
 
4092
 
        if test -z "$GNU_CC"; then
4093
 
            CFLAGS="$CFLAGS +DAportable +DS1.1"
4094
 
            CXXFLAGS="$CXXFLAGS +DAportable +DS1.1"
4095
 
        fi
4096
 
        DEFAULT_IMPL_STRATEGY=_PTH
4097
 
    fi
4098
 
 
4099
 
    if test "$OS_RELEASE" = "B.10.30"; then
4100
 
        cat >> confdefs.h <<\EOF
4101
 
#define HPUX10 1
4102
 
EOF
4103
 
 
4104
 
        cat >> confdefs.h <<\EOF
4105
 
#define HPUX10_30 1
4106
 
EOF
4107
 
 
4108
 
        if test -z "$GNU_CC"; then
4109
 
            CFLAGS="$CFLAGS +DAportable +DS1.1"
4110
 
            CXXFLAGS="$CXXFLAGS +DAportable +DS1.1"
4111
 
        fi
4112
 
        DEFAULT_IMPL_STRATEGY=_PTH
4113
 
    fi
4114
 
 
4115
 
    if echo "$OS_RELEASE" | grep ^B.11 >/dev/null; then
4116
 
        cat >> confdefs.h <<\EOF
4117
 
#define HPUX10 1
4118
 
EOF
4119
 
 
4120
 
        cat >> confdefs.h <<\EOF
4121
 
#define HPUX11 1
4122
 
EOF
4123
 
 
4124
 
        cat >> confdefs.h <<\EOF
4125
 
#define _LARGEFILE64_SOURCE 1
4126
 
EOF
4127
 
 
4128
 
        cat >> confdefs.h <<\EOF
4129
 
#define _PR_HAVE_OFF64_T 1
4130
 
EOF
4131
 
 
4132
 
        cat >> confdefs.h <<\EOF
4133
 
#define HAVE_FCNTL_FILE_LOCKING 1
4134
 
EOF
4135
 
 
4136
 
        if test -z "$GNU_CC"; then
4137
 
            if test -z "$USE_64"; then
4138
 
                if test "$OS_TEST" = "ia64"; then
4139
 
                    CFLAGS="$CFLAGS +DD32"
4140
 
                    CXXFLAGS="$CXXFLAGS +DD32"
4141
 
                else
4142
 
                    CFLAGS="$CFLAGS +DAportable +DS2.0"
4143
 
                    CXXFLAGS="$CXXFLAGS +DAportable +DS2.0"
4144
 
                fi
4145
 
            else
4146
 
                if test "$OS_TEST" = "ia64"; then
4147
 
                    CFLAGS="$CFLAGS +DD64"
4148
 
                    CXXFLAGS="$CXXFLAGS +DD64"
4149
 
                else
4150
 
                    CFLAGS="$CFLAGS +DA2.0W +DS2.0"
4151
 
                    CXXFLAGS="$CXXFLAGS +DA2.0W +DS2.0"
4152
 
                fi
4153
 
            fi
4154
 
        fi
4155
 
        DEFAULT_IMPL_STRATEGY=_PTH
4156
 
    fi
4157
 
 
4158
 
    if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then
4159
 
        USE_NSPR_THREADS=1
4160
 
        USE_PTHREADS=
4161
 
        USE_USER_PTHREADS=
4162
 
    elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then
4163
 
        USE_PTHREADS=1
4164
 
        if test "$USE_NSPR_THREADS"; then
4165
 
            USE_PTHREADS=
4166
 
        fi
4167
 
        if test "$USE_USER_PTHREADS"; then
4168
 
            USE_PTHREADS=
4169
 
        fi
4170
 
    fi
4171
 
    ;;
4172
 
 
4173
 
*-irix*)
4174
 
    cat >> confdefs.h <<\EOF
4175
 
#define XP_UNIX 1
4176
 
EOF
4177
 
 
4178
 
    cat >> confdefs.h <<\EOF
4179
 
#define IRIX 1
4180
 
EOF
4181
 
 
4182
 
    cat >> confdefs.h <<\EOF
4183
 
#define SVR4 1
4184
 
EOF
4185
 
 
4186
 
    cat >> confdefs.h <<\EOF
4187
 
#define _SGI_MP_SOURCE 1
4188
 
EOF
4189
 
 
4190
 
    cat >> confdefs.h <<\EOF
4191
 
#define HAVE_FCNTL_FILE_LOCKING 1
4192
 
EOF
4193
 
 
4194
 
    PR_MD_CSRCS=irix.c
4195
 
    PR_MD_ASFILES=os_Irix.s
4196
 
    MKSHLIB='$(LD) $(DSO_LDOPTS) -rdata_shared -shared -soname $(notdir $@) -o $@'
4197
 
    STRIP="$STRIP -f"
4198
 
    RESOLVE_LINK_SYMBOLS=1
4199
 
    if test -n "$USE_64"; then
4200
 
        MDCPUCFG_H=_irix64.cfg
4201
 
    else
4202
 
        MDCPUCFG_H=_irix32.cfg
4203
 
    fi
4204
 
    case "${target_os}" in
4205
 
    irix6*)
4206
 
        cat >> confdefs.h <<\EOF
4207
 
#define IRIX6 1
4208
 
EOF
4209
 
 
4210
 
        USE_PTHREADS=1
4211
 
        USE_N32=1
4212
 
        COMPILER_TAG=_n32
4213
 
        IMPL_STRATEGY=_PTH
4214
 
        ;;
4215
 
    irix5*)
4216
 
        cat >> confdefs.h <<\EOF
4217
 
#define IRIX5 1
4218
 
EOF
4219
 
 
4220
 
        USE_NSPR_THREADS=1
4221
 
        ;;
4222
 
    *)
4223
 
        USE_PTHREADS=1
4224
 
        USE_N32=1
4225
 
        ;;
4226
 
    esac
4227
 
    if test "$GNU_CC"; then
4228
 
                                                                    AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
4229
 
            CFLAGS="$CFLAGS -Wall -Wno-format"
4230
 
            _OPTIMIZE_FLAGS="-O6"
4231
 
    else
4232
 
            if test -n "$USE_N32"; then
4233
 
                AS='as -D_ASM $(INCLUDES) -n32'
4234
 
            else
4235
 
                AS='as -D_ASM $(INCLUDES)'
4236
 
            fi
4237
 
            CFLAGS="$CFLAGS -fullwarn -xansi"
4238
 
            if test "$USE_N32"; then
4239
 
                _OPTIMIZE_FLAGS="-O -OPT:Olimit=4000"
4240
 
            else
4241
 
                _OPTIMIZE_FLAGS="-O -Olimit 4000"
4242
 
            fi
4243
 
            if test "$USE_MDUPDATE"; then
4244
 
                CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)"
4245
 
            fi
4246
 
            case "${target}" in
4247
 
            *-irix6.*)
4248
 
                CFLAGS="$CFLAGS -multigot"
4249
 
                DSO_LDOPTS="-no_unresolved"
4250
 
                if test "$USE_N32"; then
4251
 
                        CFLAGS="$CFLAGS -n32 -woff 1209"
4252
 
                        DSO_LDOPTS="$DSO_LDOPTS -n32"
4253
 
                else
4254
 
                        if test "$USE_64"; then
4255
 
                            CFLAGS="$CFLAGS -64"
4256
 
                        else
4257
 
                            CFLAGS="$CFLAGS -32"
4258
 
                        fi
4259
 
                fi
4260
 
                ;;
4261
 
            *)
4262
 
                CFLAGS="$CFLAGS -xgot"
4263
 
                ;;
4264
 
            esac
4265
 
    fi
4266
 
    if test "${target_os}" = "irix5.3"; then
4267
 
            cat >> confdefs.h <<\EOF
4268
 
#define IRIX5_3 1
4269
 
EOF
4270
 
 
4271
 
    fi
4272
 
    case "${target_os}" in
4273
 
        irix6.5)
4274
 
            if test -z "$GNU_CC"; then
4275
 
                    CFLAGS="$CFLAGS -mips3"
4276
 
            fi
4277
 
            cat >> confdefs.h <<\EOF
4278
 
#define _PR_HAVE_GETPROTO_R 1
4279
 
EOF
4280
 
 
4281
 
            cat >> confdefs.h <<\EOF
4282
 
#define _PR_HAVE_GETPROTO_R_POINTER 1
4283
 
EOF
4284
 
 
4285
 
            cat >> confdefs.h <<\EOF
4286
 
#define _PR_HAVE_SGI_PRDA_PROCMASK 1
4287
 
EOF
4288
 
 
4289
 
            ;;
4290
 
        irix5*)
4291
 
            ;;
4292
 
        *)
4293
 
            cat >> confdefs.h <<\EOF
4294
 
#define _PR_HAVE_SGI_PRDA_PROCMASK 1
4295
 
EOF
4296
 
 
4297
 
            ;;
4298
 
        esac
4299
 
    ;;
4300
 
 
4301
 
*-linux*|*-gnu*|*-k*bsd*-gnu)
4302
 
    if test -z "$USE_NSPR_THREADS"; then
4303
 
        USE_PTHREADS=1
4304
 
        IMPL_STRATEGY=_PTH
4305
 
    fi
4306
 
    cat >> confdefs.h <<\EOF
4307
 
#define XP_UNIX 1
4308
 
EOF
4309
 
 
4310
 
    cat >> confdefs.h <<\EOF
4311
 
#define _GNU_SOURCE 1
4312
 
EOF
4313
 
 
4314
 
    cat >> confdefs.h <<\EOF
4315
 
#define HAVE_FCNTL_FILE_LOCKING 1
4316
 
EOF
4317
 
 
4318
 
    case "${target_os}" in
4319
 
    linux*)
4320
 
        cat >> confdefs.h <<\EOF
4321
 
#define LINUX 1
4322
 
EOF
4323
 
 
4324
 
        ;;
4325
 
    esac
4326
 
    CFLAGS="$CFLAGS -Wall"
4327
 
    CXXFLAGS="$CXXFLAGS -Wall"
4328
 
    MDCPUCFG_H=_linux.cfg
4329
 
    PR_MD_CSRCS=linux.c
4330
 
    MKSHLIB='$(CC) $(DSO_LDOPTS) $(WRAP_MALLOC_LIB) -o $@'
4331
 
    DSO_CFLAGS=-fPIC
4332
 
    DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
4333
 
    _OPTIMIZE_FLAGS=-O2
4334
 
    _DEBUG_FLAGS="-g -fno-inline"  # most people on linux use gcc/gdb, and that
4335
 
                                   # combo is not yet good at debugging inlined
4336
 
                                   # functions (even when using DWARF2 as the
4337
 
                                   # debugging format)
4338
 
    COMPILER_TAG=_glibc
4339
 
    if echo "$OS_TEST" | grep -c 86 >/dev/null; then
4340
 
        CPU_ARCH=x86
4341
 
    else
4342
 
        CPU_ARCH=$OS_TEST
4343
 
    fi
4344
 
    CPU_ARCH_TAG=_${CPU_ARCH}
4345
 
    case "${target_cpu}" in
4346
 
    alpha)
4347
 
        cat >> confdefs.h <<\EOF
4348
 
#define _ALPHA_ 1
4349
 
EOF
4350
 
 
4351
 
        cat >> confdefs.h <<\EOF
4352
 
#define __alpha 1
4353
 
EOF
4354
 
 
4355
 
        CFLAGS="$CFLAGS -mieee"
4356
 
        CXXFLAGS="$CXXFLAGS -mieee"
4357
 
        ;;
4358
 
    i*86)
4359
 
        cat >> confdefs.h <<\EOF
4360
 
#define i386 1
4361
 
EOF
4362
 
 
4363
 
        PR_MD_ASFILES=os_Linux_x86.s
4364
 
        ;;
4365
 
    ia64)
4366
 
        PR_MD_ASFILES=os_Linux_ia64.s
4367
 
        ;;
4368
 
    x86_64)
4369
 
        if test -n "$USE_64"; then
4370
 
            PR_MD_ASFILES=os_Linux_x86_64.s
4371
 
        else
4372
 
            cat >> confdefs.h <<\EOF
4373
 
#define i386 1
4374
 
EOF
4375
 
 
4376
 
            PR_MD_ASFILES=os_Linux_x86.s
4377
 
            CC="$CC -m32"
4378
 
            CXX="$CXX -m32"
4379
 
        fi
4380
 
        ;;
4381
 
    ppc|powerpc)
4382
 
        PR_MD_ASFILES=os_Linux_ppc.s
4383
 
        ;;
4384
 
    powerpc64)
4385
 
        if test -n "$USE_64"; then
4386
 
            CC="$CC -m64"
4387
 
            CXX="$CXX -m64"
4388
 
        else
4389
 
            PR_MD_ASFILES=os_Linux_ppc.s
4390
 
        fi
4391
 
        ;;
4392
 
    m68k)
4393
 
        CFLAGS="$CFLAGS -m68020-60"
4394
 
        CXXFLAGS="$CXXFLAGS -m68020-60"
4395
 
        ;;
4396
 
    esac    
4397
 
    ;;
4398
 
 
4399
 
*-mingw*|*-cygwin*|*-msvc*|*-mks*)
4400
 
    cat >> confdefs.h <<\EOF
4401
 
#define XP_PC 1
4402
 
EOF
4403
 
 
4404
 
    cat >> confdefs.h <<\EOF
4405
 
#define WIN32 1
4406
 
EOF
4407
 
 
4408
 
    PR_MD_ARCH_DIR=windows
4409
 
    RESOLVE_LINK_SYMBOLS=1
4410
 
 
4411
 
    if test -n "$GNU_CC"; then
4412
 
        CC="$CC -mwindows"
4413
 
        CXX="$CXX -mwindows"
4414
 
        DLL_SUFFIX=dll
4415
 
        MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))'
4416
 
        RC=$WINDRES
4417
 
        # Use temp file for windres (bug 213281)
4418
 
        RCFLAGS='-O coff --use-temp-file'
4419
 
    else
4420
 
        CC=cl
4421
 
        CXX=cl
4422
 
        LD=link
4423
 
        AR='lib -NOLOGO -OUT:"$@"'
4424
 
        AR_FLAGS=
4425
 
        RANLIB='echo not_ranlib'
4426
 
        STRIP='echo not_strip'
4427
 
        RC=rc.exe
4428
 
        GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb'
4429
 
        OBJ_SUFFIX=obj
4430
 
        LIB_SUFFIX=lib
4431
 
        DLL_SUFFIX=dll
4432
 
 
4433
 
        # Determine compiler version
4434
 
        
4435
 
        _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
4436
 
        
4437
 
        CC_VERSION=`"${CC}" -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"`
4438
 
        _CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'`
4439
 
        _CC_MINOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'`
4440
 
        _CC_RELEASE=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'`
4441
 
        _CC_BUILD=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'`
4442
 
        MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION}
4443
 
 
4444
 
        if test "$_CC_MAJOR_VERSION" -eq "14"; then
4445
 
                                            if test $_CC_RELEASE -gt 50727; then
4446
 
              _USE_DYNAMICBASE=1
4447
 
           elif test $_CC_BUILD -ge 762; then
4448
 
              _USE_DYNAMICBASE=1
4449
 
           fi
4450
 
           cat >> confdefs.h <<\EOF
4451
 
#define _CRT_SECURE_NO_DEPRECATE 1
4452
 
EOF
4453
 
 
4454
 
           cat >> confdefs.h <<\EOF
4455
 
#define _CRT_NONSTDC_NO_DEPRECATE 1
4456
 
EOF
4457
 
 
4458
 
        elif test $_CC_MAJOR_VERSION -ge 15; then
4459
 
           _USE_DYNAMICBASE=1    
4460
 
           cat >> confdefs.h <<\EOF
4461
 
#define _CRT_SECURE_NO_WARNINGS 1
4462
 
EOF
4463
 
 
4464
 
           cat >> confdefs.h <<\EOF
4465
 
#define _CRT_NONSTDC_NO_WARNINGS 1
4466
 
EOF
4467
 
 
4468
 
        fi
4469
 
 
4470
 
        if test -n "$_USE_DYNAMICBASE"; then
4471
 
           DLLFLAGS="$DLLFLAGS -DYNAMICBASE"
4472
 
        fi
4473
 
 
4474
 
        # Ensure that mt is Microsoft (R) Manifest Tool and not magnetic
4475
 
        # tape manipulation utility (or something else)
4476
 
        if test "$MSC_VER" -ge "1400"; then
4477
 
            
4478
 
            _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p'
4479
 
            
4480
 
 
4481
 
            MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'`
4482
 
            if test -n "$MSMT_TOOL"; then
4483
 
                MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"`
4484
 
                if test -z "$MSMANIFEST_TOOL_VERSION"; then
4485
 
                    echo "configure: warning: Unknown version of the Microsoft (R) Manifest Tool." 1>&2
4486
 
                fi
4487
 
                MT=mt
4488
 
                unset MSMT_TOOL
4489
 
            else
4490
 
                { echo "configure: error: Microsoft (R) Manifest Tool must be in your \$PATH." 1>&2; exit 1; }
4491
 
            fi
4492
 
        fi
4493
 
        
4494
 
        CFLAGS="$CFLAGS -W3 -nologo -GF -Gy"
4495
 
        DLLFLAGS="$DLLFLAGS -OUT:\"\$@\""
4496
 
        _DEBUG_FLAGS=-Zi
4497
 
        _OPTIMIZE_FLAGS=-O2
4498
 
 
4499
 
        PROFILE_GEN_CFLAGS="-GL"
4500
 
        PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT"
4501
 
        PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952"
4502
 
        PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE"
4503
 
 
4504
 
        if test -z "$MOZ_OPTIMIZE"; then
4505
 
            CFLAGS="$CFLAGS -Od"
4506
 
        fi
4507
 
 
4508
 
        if test -n "$USE_DEBUG_RTL"; then
4509
 
            CFLAGS="$CFLAGS -MDd"
4510
 
        else
4511
 
            CFLAGS="$CFLAGS -MD"
4512
 
        fi
4513
 
 
4514
 
        if test -n "$MOZ_DEBUG"; then
4515
 
            cat >> confdefs.h <<\EOF
4516
 
#define _DEBUG 1
4517
 
EOF
4518
 
 
4519
 
        else
4520
 
            DEFINES="$DEFINES -U_DEBUG"
4521
 
        fi
4522
 
 
4523
 
        if test -n "$MOZ_DEBUG_SYMBOLS"; then
4524
 
            if test -n "$MOZ_OPTIMIZE"; then
4525
 
                DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF"
4526
 
                LDFLAGS="$LDFLAGS -DEBUG -OPT:REF"
4527
 
            else
4528
 
                DLLFLAGS="$DLLFLAGS -DEBUG"
4529
 
                LDFLAGS="$LDFLAGS -DEBUG"
4530
 
            fi
4531
 
        fi
4532
 
 
4533
 
        OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS"
4534
 
        if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then
4535
 
            OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE"
4536
 
        fi
4537
 
        
4538
 
        if test "$OS_TARGET" = "WINNT"; then
4539
 
            CFLAGS="$CFLAGS -GT"
4540
 
            LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4541
 
            LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4542
 
        else
4543
 
            LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4544
 
            LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4545
 
        fi
4546
 
    fi # GNU_CC
4547
 
 
4548
 
    if test -n "$USE_STATIC_TLS"; then
4549
 
        cat >> confdefs.h <<\EOF
4550
 
#define _PR_USE_STATIC_TLS 1
4551
 
EOF
4552
 
 
4553
 
    fi
4554
 
 
4555
 
    if test "$OS_TARGET" = "WINNT"; then
4556
 
        cat >> confdefs.h <<\EOF
4557
 
#define WINNT 1
4558
 
EOF
4559
 
 
4560
 
    else
4561
 
        cat >> confdefs.h <<\EOF
4562
 
#define WIN95 1
4563
 
EOF
4564
 
 
4565
 
        # undefine WINNT as some versions of mingw gcc define it by default
4566
 
        DEFINES="$DEFINES -UWINNT"
4567
 
        cat >> confdefs.h <<\EOF
4568
 
#define _PR_GLOBAL_THREADS_ONLY 1
4569
 
EOF
4570
 
 
4571
 
    fi
4572
 
 
4573
 
    if test "$CPU_ARCH" = "x86"; then
4574
 
        CPU_ARCH_TAG=
4575
 
    else
4576
 
        CPU_ARCH_TAG=$CPU_ARCH
4577
 
    fi
4578
 
 
4579
 
    if test -n "$USE_DEBUG_RTL"; then
4580
 
        OBJDIR_SUFFIX=OBJD
4581
 
    fi
4582
 
 
4583
 
    case "$OS_TARGET" in
4584
 
    WINNT)
4585
 
            MDCPUCFG_H=_winnt.cfg
4586
 
            ;;
4587
 
    WIN95)
4588
 
            MDCPUCFG_H=_win95.cfg
4589
 
            ;;
4590
 
    *)
4591
 
            { echo "configure: error: Missing OS_TARGET for ${target}.  Use --enable-win32-target to set." 1>&2; exit 1; }
4592
 
        ;;
4593
 
    esac
4594
 
 
4595
 
    case "$target_cpu" in
4596
 
    i*86)
4597
 
        if test -n "$USE_64"; then
4598
 
            cat >> confdefs.h <<\EOF
4599
 
#define _AMD64_ 1
4600
 
EOF
4601
 
 
4602
 
        else            
4603
 
            cat >> confdefs.h <<\EOF
4604
 
#define _X86_ 1
4605
 
EOF
4606
 
 
4607
 
        fi
4608
 
        ;;
4609
 
    x86_64)
4610
 
            cat >> confdefs.h <<\EOF
4611
 
#define _AMD64_ 1
4612
 
EOF
4613
 
 
4614
 
            USE_64=1
4615
 
            ;;
4616
 
    ia64)
4617
 
            cat >> confdefs.h <<\EOF
4618
 
#define _IA64_ 1
4619
 
EOF
4620
 
 
4621
 
            USE_64=1
4622
 
            ;;
4623
 
    *)
4624
 
            cat >> confdefs.h <<\EOF
4625
 
#define _CPU_ARCH_NOT_DEFINED 1
4626
 
EOF
4627
 
 
4628
 
            ;;
4629
 
    esac
4630
 
    ;;
4631
 
 
4632
 
*-wince*|*-winmo*)
4633
 
    cat >> confdefs.h <<\EOF
4634
 
#define XP_PC 1
4635
 
EOF
4636
 
 
4637
 
    cat >> confdefs.h <<\EOF
4638
 
#define WIN32 1
4639
 
EOF
4640
 
 
4641
 
    cat >> confdefs.h <<\EOF
4642
 
#define WINCE 1
4643
 
EOF
4644
 
 
4645
 
    cat >> confdefs.h <<\EOF
4646
 
#define _PR_GLOBAL_THREADS_ONLY 1
4647
 
EOF
4648
 
 
4649
 
 
4650
 
    AR_FLAGS='-NOLOGO -OUT:"$@"'
4651
 
 
4652
 
    OBJ_SUFFIX=obj
4653
 
    LIB_SUFFIX=lib
4654
 
    DLL_SUFFIX=dll
4655
 
    MKSHLIB='$(LD) -DLL $(DSO_LDOPTS) -OUT:$@'
4656
 
 
4657
 
    PR_MD_ARCH_DIR=windows
4658
 
    RESOLVE_LINK_SYMBOLS=1
4659
 
 
4660
 
    MDCPUCFG_H=_win95.cfg
4661
 
    LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4662
 
    LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4663
 
 
4664
 
    DLLFLAGS='-OUT:"$@"'
4665
 
    if test -n "$MOZ_DEBUG_SYMBOLS"; then
4666
 
        OS_LDFLAGS='-DEBUG -DEBUGTYPE:CV'
4667
 
        OS_DLLFLAGS='-DEBUG -DEBUGTYPE:CV'
4668
 
        DSO_LDOPTS='-DEBUG -DEBUGTYPE:CV'
4669
 
    fi
4670
 
    _DEBUG_FLAGS=-Zi
4671
 
    _OPTIMIZE_FLAGS=-O2
4672
 
    ;;
4673
 
 
4674
 
*-ncr-sysv*)
4675
 
    cat >> confdefs.h <<\EOF
4676
 
#define XP_UNIX 1
4677
 
EOF
4678
 
 
4679
 
    cat >> confdefs.h <<\EOF
4680
 
#define SVR4 1
4681
 
EOF
4682
 
 
4683
 
    cat >> confdefs.h <<\EOF
4684
 
#define SYSV 1
4685
 
EOF
4686
 
 
4687
 
    cat >> confdefs.h <<\EOF
4688
 
#define NCR 1
4689
 
EOF
4690
 
 
4691
 
    USE_NSPR_THREADS=1
4692
 
    if test "$OS_RELEASE" = "2.03"; then
4693
 
        cat >> confdefs.h <<\EOF
4694
 
#define _PR_STAT_HAS_ST_ATIM 1
4695
 
EOF
4696
 
 
4697
 
    else
4698
 
        cat >> confdefs.h <<\EOF
4699
 
#define _PR_STAT_HAS_ST_ATIM_UNION 1
4700
 
EOF
4701
 
 
4702
 
    fi
4703
 
 
4704
 
    if test -z "$GNU_CC"; then
4705
 
        CFLAGS="$CFLAGS -Hnocopyr"
4706
 
        CXXFLAGS="$CXXFLAGS -Hnocopyr"
4707
 
    else
4708
 
        CFLAGS="$CFLAGS -fPIC -Wall"
4709
 
        CXXFLAGS="$CXXFLAGS -fPIC -Wall"
4710
 
        DSO_LDOPTS=-G
4711
 
    fi
4712
 
    MDCPUCFG_H=_ncr.cfg
4713
 
    PR_MD_CSRCS=ncr.c
4714
 
    ;;
4715
 
 
4716
 
mips-nec-sysv*)
4717
 
    cat >> confdefs.h <<\EOF
4718
 
#define XP_UNIX 1
4719
 
EOF
4720
 
 
4721
 
    cat >> confdefs.h <<\EOF
4722
 
#define SVR4 1
4723
 
EOF
4724
 
 
4725
 
    cat >> confdefs.h <<\EOF
4726
 
#define __SVR4 1
4727
 
EOF
4728
 
 
4729
 
    cat >> confdefs.h <<\EOF
4730
 
#define NEC 1
4731
 
EOF
4732
 
 
4733
 
    cat >> confdefs.h <<\EOF
4734
 
#define nec_ews 1
4735
 
EOF
4736
 
 
4737
 
    USE_NSPR_THREADS=1
4738
 
    if test -z "$GNU_CC"; then
4739
 
        CC='$(NSDEPTH)/build/hcc cc -Xa -KGnum=0 -KOlimit=4000'
4740
 
        CXX=g++
4741
 
    fi
4742
 
    OS_LIBS="$OS_LIBS -lsocket -lnsl -ldl"
4743
 
    DSO_LDOPTS=-G
4744
 
    MDCPUCFG_H=_nec.cfg
4745
 
    PR_MD_CSRCS=nec.c
4746
 
    ;;
4747
 
 
4748
 
*-netbsd*)
4749
 
    cat >> confdefs.h <<\EOF
4750
 
#define XP_UNIX 1
4751
 
EOF
4752
 
 
4753
 
    cat >> confdefs.h <<\EOF
4754
 
#define NETBSD 1
4755
 
EOF
4756
 
 
4757
 
    cat >> confdefs.h <<\EOF
4758
 
#define HAVE_BSD_FLOCK 1
4759
 
EOF
4760
 
 
4761
 
    if test -z "$USE_NSPR_THREADS"; then
4762
 
        USE_PTHREADS=1
4763
 
    fi
4764
 
    MDCPUCFG_H=_netbsd.cfg
4765
 
    PR_MD_CSRCS=netbsd.c
4766
 
 
4767
 
    DSO_CFLAGS='-fPIC -DPIC'
4768
 
    CFLAGS="$CFLAGS -ansi -Wall"
4769
 
    CXXFLAGS="$CXXFLAGS -ansi -Wall"
4770
 
    MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
4771
 
 
4772
 
    if test -z "$OBJECT_FMT"; then
4773
 
        if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then
4774
 
            OBJECT_FMT=a.out
4775
 
            DLL_SUFFIX=so.1.0
4776
 
            DSO_LDOPTS='-shared'
4777
 
        else
4778
 
            OBJECT_FMT=ELF
4779
 
            DLL_SUFFIX=so
4780
 
            DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)'
4781
 
        fi
4782
 
    fi
4783
 
 
4784
 
    if test "$LIBRUNPATH"; then
4785
 
        DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
4786
 
    fi
4787
 
    ;;
4788
 
 
4789
 
mips-sony-newsos*)
4790
 
    cat >> confdefs.h <<\EOF
4791
 
#define XP_UNIX 1
4792
 
EOF
4793
 
 
4794
 
    cat >> confdefs.h <<\EOF
4795
 
#define SONY 1
4796
 
EOF
4797
 
 
4798
 
    cat >> confdefs.h <<\EOF
4799
 
#define SYSV 1
4800
 
EOF
4801
 
 
4802
 
    cat >> confdefs.h <<\EOF
4803
 
#define SVR4 1
4804
 
EOF
4805
 
 
4806
 
    cat >> confdefs.h <<\EOF
4807
 
#define __svr4 1
4808
 
EOF
4809
 
 
4810
 
    cat >> confdefs.h <<\EOF
4811
 
#define __svr4__ 1
4812
 
EOF
4813
 
 
4814
 
    cat >> confdefs.h <<\EOF
4815
 
#define HAVE_SVID_GETTOD 1
4816
 
EOF
4817
 
 
4818
 
    USE_NSPR_THREADS=1
4819
 
    CFLAGS="$CFLAGS -Xa -fullwarn"
4820
 
    CXXFLAGS="$CXXFLAGS -Xa -fullwarn"
4821
 
    DSO_LDOPTS=-G
4822
 
    MDCPUCFG_H=_sony.cfg
4823
 
    PR_MD_CSRCS=sony.c
4824
 
    ;;
4825
 
 
4826
 
*-nextstep*|*-openstep*)
4827
 
    cat >> confdefs.h <<\EOF
4828
 
#define XP_UNIX 1
4829
 
EOF
4830
 
 
4831
 
    cat >> confdefs.h <<\EOF
4832
 
#define NEXTSTEP 1
4833
 
EOF
4834
 
 
4835
 
    cat >> confdefs.h <<\EOF
4836
 
#define HAVE_BSD_FLOCK 1
4837
 
EOF
4838
 
 
4839
 
    cat >> confdefs.h <<\EOF
4840
 
#define _POSIX_SOURCE 1
4841
 
EOF
4842
 
 
4843
 
    CFLAGS="$CFLAGS -Wall -fno-common -traditional-cpp -posix"
4844
 
    CXXFLAGS="$CXXFLAGS -Wall -fno-common -traditional-cpp -posix"
4845
 
    USE_NSPR_THREADS=1
4846
 
    DLL_SUFFIX=dylib
4847
 
    MDCPUCFG_H=_nextstep.cfg
4848
 
    PR_MD_CSRCS=nextstep.c
4849
 
    ;;
4850
 
 
4851
 
 
4852
 
*-nto*)
4853
 
    cat >> confdefs.h <<\EOF
4854
 
#define XP_UNIX 1
4855
 
EOF
4856
 
 
4857
 
    cat >> confdefs.h <<\EOF
4858
 
#define NTO 1
4859
 
EOF
4860
 
 
4861
 
    cat >> confdefs.h <<\EOF
4862
 
#define _QNX_SOURCE 1
4863
 
EOF
4864
 
 
4865
 
    cat >> confdefs.h <<\EOF
4866
 
#define HAVE_POINTER_LOCALTIME_R 1
4867
 
EOF
4868
 
 
4869
 
    MDCPUCFG_H=_nto.cfg
4870
 
    PR_MD_CSRCS=nto.c
4871
 
    MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@'
4872
 
    DSO_CFLAGS=-fPIC
4873
 
    DSO_LDOPTS=-shared
4874
 
    OS_LIBS="$OS_LIBS -lsocket"
4875
 
    _OPTIMIZE_FLAGS="-O1"
4876
 
    _DEBUG_FLAGS="-gstabs"
4877
 
        ;;
4878
 
 
4879
 
*-openbsd*)
4880
 
    cat >> confdefs.h <<\EOF
4881
 
#define XP_UNIX 1
4882
 
EOF
4883
 
 
4884
 
    cat >> confdefs.h <<\EOF
4885
 
#define OPENBSD 1
4886
 
EOF
4887
 
 
4888
 
    cat >> confdefs.h <<\EOF
4889
 
#define HAVE_BSD_FLOCK 1
4890
 
EOF
4891
 
 
4892
 
    cat >> confdefs.h <<\EOF
4893
 
#define HAVE_SOCKLEN_T 1
4894
 
EOF
4895
 
 
4896
 
    CFLAGS="$CFLAGS -ansi -Wall"
4897
 
    CXXFLAGS="$CXXFLAGS -ansi -Wall"
4898
 
    DLL_SUFFIX=so.1.0
4899
 
    DSO_CFLAGS=-fPIC
4900
 
    MDCPUCFG_H=_openbsd.cfg
4901
 
    PR_MD_CSRCS=openbsd.c
4902
 
    OS_LIBS="-lc"
4903
 
    if test -z "$USE_NSPR_THREADS"; then
4904
 
        USE_PTHREADS=1
4905
 
    fi
4906
 
    DSO_LDOPTS='-shared -fPIC'
4907
 
    MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
4908
 
    ;;
4909
 
 
4910
 
*-osf*)
4911
 
    SHELL_OVERRIDE="SHELL               = /usr/bin/ksh"
4912
 
    cat >> confdefs.h <<\EOF
4913
 
#define XP_UNIX 1
4914
 
EOF
4915
 
 
4916
 
    cat >> confdefs.h <<\EOF
4917
 
#define OSF1 1
4918
 
EOF
4919
 
 
4920
 
    cat >> confdefs.h <<\EOF
4921
 
#define _REENTRANT 1
4922
 
EOF
4923
 
 
4924
 
    # OSF1 and HPUX report the POLLHUP event for a socket when the
4925
 
    # shutdown(SHUT_WR) operation is called for the remote end, even though
4926
 
    # the socket is still writeable. Use select(), instead of poll(), to
4927
 
    # workaround this problem.
4928
 
    cat >> confdefs.h <<\EOF
4929
 
#define _PR_POLL_WITH_SELECT 1
4930
 
EOF
4931
 
 
4932
 
 
4933
 
    if echo "$OS_RELEASE" | egrep -c '(V2.0|V3.2)' 2>/dev/null ; then
4934
 
        USE_NSPR_THREADS=1
4935
 
    fi
4936
 
 
4937
 
    if test -z "$GNU_CC"; then
4938
 
        CC="$CC -std1 -ieee_with_inexact"
4939
 
        if test "$OS_RELEASE" != "V2.0"; then
4940
 
            CC="$CC -readonly_strings"
4941
 
        fi
4942
 
        _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
4943
 
        ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'`
4944
 
echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6
4945
 
echo "configure:4946: checking for machine/builtins.h" >&5
4946
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4947
 
  echo $ac_n "(cached) $ac_c" 1>&6
4948
 
else
4949
 
  cat > conftest.$ac_ext <<EOF
4950
 
#line 4951 "configure"
4951
 
#include "confdefs.h"
4952
 
#include <machine/builtins.h>
4953
 
EOF
4954
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4955
 
{ (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4956
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4957
 
if test -z "$ac_err"; then
4958
 
  rm -rf conftest*
4959
 
  eval "ac_cv_header_$ac_safe=yes"
4960
 
else
4961
 
  echo "$ac_err" >&5
4962
 
  echo "configure: failed program was:" >&5
4963
 
  cat conftest.$ac_ext >&5
4964
 
  rm -rf conftest*
4965
 
  eval "ac_cv_header_$ac_safe=no"
4966
 
fi
4967
 
rm -f conftest*
4968
 
fi
4969
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4970
 
  echo "$ac_t""yes" 1>&6
4971
 
  cat >> confdefs.h <<\EOF
4972
 
#define OSF1_HAVE_MACHINE_BUILTINS_H 1
4973
 
EOF
4974
 
 
4975
 
else
4976
 
  echo "$ac_t""no" 1>&6
4977
 
fi
4978
 
 
4979
 
    else
4980
 
        CFLAGS="$CFLAGS -mieee"
4981
 
        CXXFLAGS="$CXXFLAGS -mieee"
4982
 
    fi
4983
 
 
4984
 
    if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then
4985
 
        cat >> confdefs.h <<\EOF
4986
 
#define HAVE_INT_LOCALTIME_R 1
4987
 
EOF
4988
 
 
4989
 
    else
4990
 
        cat >> confdefs.h <<\EOF
4991
 
#define HAVE_FCNTL_FILE_LOCKING 1
4992
 
EOF
4993
 
 
4994
 
        cat >> confdefs.h <<\EOF
4995
 
#define HAVE_POINTER_LOCALTIME_R 1
4996
 
EOF
4997
 
 
4998
 
    fi
4999
 
    if echo $OS_RELEASE | grep -c V4.0 >/dev/null; then
5000
 
        cat >> confdefs.h <<\EOF
5001
 
#define OSF1V4_MAP_PRIVATE_BUG 1
5002
 
EOF
5003
 
 
5004
 
    fi
5005
 
    DSO_LDOPTS='-shared -all -expect_unresolved "*" -soname $(notdir $@)'
5006
 
    MDCPUCFG_H=_osf1.cfg
5007
 
    PR_MD_CSRCS=osf1.c
5008
 
    ;;
5009
 
 
5010
 
*-qnx*)
5011
 
    cat >> confdefs.h <<\EOF
5012
 
#define XP_UNIX 1
5013
 
EOF
5014
 
 
5015
 
    cat >> confdefs.h <<\EOF
5016
 
#define QNX 1
5017
 
EOF
5018
 
 
5019
 
    cat >> confdefs.h <<\EOF
5020
 
#define _PR_NEED_H_ERRNO 1
5021
 
EOF
5022
 
 
5023
 
    USE_NSPR_THREADS=1
5024
 
    MDCPUCFG_H=_qnx.cfg
5025
 
    PR_MD_CSRCS=qnx.c
5026
 
    ;;
5027
 
 
5028
 
*-riscos*)
5029
 
    cat >> confdefs.h <<\EOF
5030
 
#define XP_UNIX 1
5031
 
EOF
5032
 
 
5033
 
    cat >> confdefs.h <<\EOF
5034
 
#define RISCOS 1
5035
 
EOF
5036
 
 
5037
 
    cat >> confdefs.h <<\EOF
5038
 
#define _PR_NEED_H_ERRNO 1
5039
 
EOF
5040
 
 
5041
 
    USE_PTHREADS=1
5042
 
    MDCPUCFG_H=_riscos.cfg
5043
 
    PR_MD_CSRCS=riscos.c
5044
 
    DSO_CFLAGS=-fPIC
5045
 
    DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
5046
 
    MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
5047
 
    ;;
5048
 
 
5049
 
*-*-sco*)
5050
 
    cat >> confdefs.h <<\EOF
5051
 
#define XP_UNIX 1
5052
 
EOF
5053
 
 
5054
 
    cat >> confdefs.h <<\EOF
5055
 
#define SCO 1
5056
 
EOF
5057
 
 
5058
 
    cat >> confdefs.h <<\EOF
5059
 
#define sco 1
5060
 
EOF
5061
 
 
5062
 
    cat >> confdefs.h <<\EOF
5063
 
#define SYSV 1
5064
 
EOF
5065
 
 
5066
 
    cat >> confdefs.h <<\EOF
5067
 
#define _SVID3 1
5068
 
EOF
5069
 
 
5070
 
    cat >> confdefs.h <<\EOF
5071
 
#define _PR_NEED_H_ERRNO 1
5072
 
EOF
5073
 
 
5074
 
    CC='cc -b elf -KPIC'
5075
 
    CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w'
5076
 
    USE_NSPR_THREADS=1
5077
 
    CPU_ARCH=x86
5078
 
    DSO_LDOPTS='-b elf -G'
5079
 
    MDCPUCFG_H=_scoos.cfg
5080
 
    PR_MD_SRCS=scoos.c
5081
 
    ;;
5082
 
 
5083
 
*-sinix*)
5084
 
    cat >> confdefs.h <<\EOF
5085
 
#define XP_UNIX 1
5086
 
EOF
5087
 
 
5088
 
    cat >> confdefs.h <<\EOF
5089
 
#define SVR4 1
5090
 
EOF
5091
 
 
5092
 
    cat >> confdefs.h <<\EOF
5093
 
#define SNI 1
5094
 
EOF
5095
 
 
5096
 
    cat >> confdefs.h <<\EOF
5097
 
#define RELIANTUNIX 1
5098
 
EOF
5099
 
 
5100
 
    cat >> confdefs.h <<\EOF
5101
 
#define sinix 1
5102
 
EOF
5103
 
 
5104
 
    cat >> confdefs.h <<\EOF
5105
 
#define HAVE_SVID_GETTOD 1
5106
 
EOF
5107
 
 
5108
 
    if echo "$OS_TEST" | grep -c 86 2>/dev/null; then
5109
 
        cat >> confdefs.h <<\EOF
5110
 
#define i386 1
5111
 
EOF
5112
 
 
5113
 
        CPU_ARCH=x86
5114
 
    else
5115
 
        CPU_ARCH=mips
5116
 
    fi
5117
 
 
5118
 
    if test "$GNU_CC"; then
5119
 
        AS='$(CC) -x assembler-with-cpp'
5120
 
        if test "$CPU_ARCH" = "mips"; then
5121
 
            LD=gld
5122
 
        fi
5123
 
        CFLAGS="$CFLAGS -Wall -Wno-format"
5124
 
    else
5125
 
        AS='/usr/bin/cc'
5126
 
        _OPTIMIZE_FLAGS='-O -F Olimit,4000'
5127
 
    fi
5128
 
 
5129
 
    DSO_LDOPTS='-G -z defs -h $(@:$(OBJDIR)/%.so=%.so)'
5130
 
 
5131
 
    if test "$OS_RELEASE" = "5.43"; then
5132
 
        cat >> confdefs.h <<\EOF
5133
 
#define IP_MULTICAST 1
5134
 
EOF
5135
 
 
5136
 
    fi
5137
 
 
5138
 
    OS_LIBS="$OS_LIBS -lsocket -lnsl -lresolv -ldl -lc"
5139
 
    USE_NSPR_THREADS=1
5140
 
    MDCPUCFG_H=_reliantunix.cfg
5141
 
    PR_MD_CSRCS=reliantunix.c
5142
 
    if test "${OS_ARCH}" = "mips"; then
5143
 
        PR_MD_ASFILES=os_ReliantUNIX.s
5144
 
    fi
5145
 
    ;;
5146
 
 
5147
 
*-sunos*)
5148
 
    cat >> confdefs.h <<\EOF
5149
 
#define XP_UNIX 1
5150
 
EOF
5151
 
 
5152
 
    cat >> confdefs.h <<\EOF
5153
 
#define SUNOS4 1
5154
 
EOF
5155
 
 
5156
 
    CFLAGS="$CFLAGS -Wall -Wno-format"
5157
 
    if test "$USE_MDUPDATE"; then
5158
 
        CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)"
5159
 
    fi
5160
 
    CPU_ARCH=sparc
5161
 
    DLL_SUFFIX=so.1.0
5162
 
    DSO_LDOPTS=
5163
 
    DSO_CFLAGS=-fPIC
5164
 
    USE_NSPR_THREADS=1
5165
 
    if test "$OS_RELEASE" = "4.1.3_U1"; then
5166
 
        _OPTIMIZE_FLAGS=
5167
 
        OS_LIBS="$OS_LIBS -lm"
5168
 
    fi
5169
 
    MDCPUCFG_H=_sunos4.cfg
5170
 
    PR_MD_CSRCS=sunos4.c
5171
 
    ;;
5172
 
 
5173
 
*-solaris*)
5174
 
    if test -z "$USE_NSPR_THREADS"; then
5175
 
        USE_PTHREADS=1
5176
 
    fi
5177
 
    cat >> confdefs.h <<\EOF
5178
 
#define XP_UNIX 1
5179
 
EOF
5180
 
 
5181
 
    cat >> confdefs.h <<\EOF
5182
 
#define SVR4 1
5183
 
EOF
5184
 
 
5185
 
    cat >> confdefs.h <<\EOF
5186
 
#define SYSV 1
5187
 
EOF
5188
 
 
5189
 
    cat >> confdefs.h <<\EOF
5190
 
#define __svr4 1
5191
 
EOF
5192
 
 
5193
 
    cat >> confdefs.h <<\EOF
5194
 
#define __svr4__ 1
5195
 
EOF
5196
 
 
5197
 
    cat >> confdefs.h <<\EOF
5198
 
#define SOLARIS 1
5199
 
EOF
5200
 
 
5201
 
    cat >> confdefs.h <<\EOF
5202
 
#define HAVE_FCNTL_FILE_LOCKING 1
5203
 
EOF
5204
 
 
5205
 
    CPU_ARCH=`uname -p`
5206
 
    MDCPUCFG_H=_solaris.cfg
5207
 
    PR_MD_CSRCS=solaris.c
5208
 
    LD=/usr/ccs/bin/ld
5209
 
    MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
5210
 
    RESOLVE_LINK_SYMBOLS=1
5211
 
    case "${OS_RELEASE}" in
5212
 
    5.8|5.9)
5213
 
        ;;
5214
 
    *)
5215
 
        # It is safe to use the -Bdirect linker flag on Solaris 10 or later.
5216
 
        USE_B_DIRECT=1
5217
 
        ;;
5218
 
    esac
5219
 
    if test -n "$GNU_CC"; then
5220
 
        DSO_CFLAGS=-fPIC
5221
 
        if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then
5222
 
            GCC_USE_GNU_LD=1
5223
 
        fi
5224
 
        DSO_LDOPTS='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs,-z,ignore' 
5225
 
        if test -n "$USE_B_DIRECT"; then
5226
 
            DSO_LDOPTS="$DSO_LDOPTS,-Bdirect"
5227
 
        fi
5228
 
    else
5229
 
        DSO_CFLAGS=-KPIC
5230
 
        DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs -z ignore'
5231
 
        if test -n "$USE_B_DIRECT"; then
5232
 
            DSO_LDOPTS="$DSO_LDOPTS -Bdirect"
5233
 
        fi
5234
 
    fi
5235
 
    if test -n "$GNU_CC"; then
5236
 
        CFLAGS="$CFLAGS -Wall"
5237
 
        CXXFLAGS="$CXXFLAGS -Wall"
5238
 
        if test -n "$USE_MDUPDATE"; then
5239
 
            CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)"
5240
 
            CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)"
5241
 
        fi
5242
 
        GCC_AS=`$CC -print-prog-name=as`
5243
 
        if test "`echo | $GCC_AS -v 2>&1 | grep -c GNU`" != "0"; then
5244
 
            GNU_AS=1
5245
 
        fi
5246
 
    else
5247
 
        CFLAGS="$CFLAGS -xstrconst"
5248
 
        CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst -features=tmplife"
5249
 
        if test -z "$MOZ_OPTIMIZE"; then
5250
 
            CFLAGS="$CFLAGS -xs"
5251
 
            CXXFLAGS="$CXXFLAGS -xs"
5252
 
        fi
5253
 
        _OPTIMIZE_FLAGS=-xO4
5254
 
    fi
5255
 
    if test -z "$GNU_AS"; then
5256
 
        ASFLAGS="$ASFLAGS -Wa,-P"
5257
 
    fi
5258
 
    if test -n "$USE_64"; then
5259
 
        if test -n "$GNU_CC"; then
5260
 
            CC="$CC -m64"
5261
 
            CXX="$CXX -m64"
5262
 
        else
5263
 
            if test "$OS_TEST" = "i86pc"; then
5264
 
                CC="$CC -xarch=amd64"
5265
 
                CXX="$CXX -xarch=amd64"
5266
 
            else
5267
 
                CC="$CC -xarch=v9"
5268
 
                CXX="$CXX -xarch=v9"
5269
 
            fi
5270
 
        fi
5271
 
    fi
5272
 
    if test "$OS_TEST" = "i86pc"; then
5273
 
        if test -z "$USE_64"; then
5274
 
            cat >> confdefs.h <<\EOF
5275
 
#define i386 1
5276
 
EOF
5277
 
 
5278
 
        fi
5279
 
        CPU_ARCH_TAG=_$OS_TEST
5280
 
        # The default debug format, DWARF (-g), is not supported by gcc
5281
 
        # on i386-ANY-sysv4/solaris, but the stabs format is.  It is
5282
 
        # assumed that the Solaris assembler /usr/ccs/bin/as is used.
5283
 
        # If your gcc uses GNU as, you do not need the -Wa,-s option.
5284
 
        if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then
5285
 
            _DEBUG_FLAGS=-gstabs
5286
 
            if test -z "$GNU_AS"; then
5287
 
                _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s"
5288
 
            fi
5289
 
        fi
5290
 
    fi
5291
 
    case "${target_os}" in
5292
 
    solaris2.3*)
5293
 
        cat >> confdefs.h <<\EOF
5294
 
#define _PR_NO_LARGE_FILES 1
5295
 
EOF
5296
 
 
5297
 
        ;;
5298
 
    solaris2.4*)
5299
 
        cat >> confdefs.h <<\EOF
5300
 
#define _PR_NO_LARGE_FILES 1
5301
 
EOF
5302
 
 
5303
 
        ;;
5304
 
    solaris2.5*)
5305
 
        cat >> confdefs.h <<\EOF
5306
 
#define SOLARIS2_5 1
5307
 
EOF
5308
 
    
5309
 
        ;;
5310
 
    *)
5311
 
        cat >> confdefs.h <<\EOF
5312
 
#define _PR_HAVE_OFF64_T 1
5313
 
EOF
5314
 
 
5315
 
        # The lfcompile64(5) man page on Solaris 2.6 says:
5316
 
        #     For applications that do not wish to conform to the POSIX or
5317
 
        #     X/Open  specifications,  the  64-bit transitional interfaces
5318
 
        #     are available by default.  No compile-time flags need to  be
5319
 
        #     set.
5320
 
        # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default.
5321
 
        # The native compiler, gcc 2.8.x, and egcs don't have this problem.
5322
 
        if test -n "$GNU_CC"; then
5323
 
            cat >> confdefs.h <<\EOF
5324
 
#define _LARGEFILE64_SOURCE 1
5325
 
EOF
5326
 
 
5327
 
        fi
5328
 
        ;;
5329
 
    esac
5330
 
    case "${target_os}" in
5331
 
    solaris2.3*)
5332
 
        ;;
5333
 
    solaris2.4*)
5334
 
        ;;
5335
 
    solaris2.5*)
5336
 
        ;;
5337
 
    solaris2.6*)
5338
 
        ;;
5339
 
    solaris2.7*)
5340
 
        ;;
5341
 
    *)
5342
 
        # Solaris 8 or higher has IPv6.
5343
 
        cat >> confdefs.h <<\EOF
5344
 
#define _PR_INET6 1
5345
 
EOF
5346
 
 
5347
 
        ;;
5348
 
    esac
5349
 
    if test "$CPU_ARCH" = "sparc"; then
5350
 
        # 64-bit Solaris SPARC requires V9 architecture, so the following
5351
 
        # is not needed.
5352
 
        if test -z "$USE_64"; then
5353
 
            ULTRASPARC_LIBRARY=nspr_flt
5354
 
        fi
5355
 
    fi
5356
 
    # Purify requires that binaries linked against nspr also
5357
 
    # be linked against -lrt (or -lposix4) so add it to OS_LIBS
5358
 
    _rev=`uname -r`
5359
 
    _librt=`echo $_rev 5.6 | awk '{ if ($1 > $2) print "-lrt"; else print "-lposix4" }'`
5360
 
    OS_LIBS="$OS_LIBS $_librt"
5361
 
    ;;
5362
 
 
5363
 
*-sco-sysv5*)
5364
 
    cat >> confdefs.h <<\EOF
5365
 
#define XP_UNIX 1
5366
 
EOF
5367
 
 
5368
 
    cat >> confdefs.h <<\EOF
5369
 
#define UNIXWARE 1
5370
 
EOF
5371
 
 
5372
 
    cat >> confdefs.h <<\EOF
5373
 
#define SVR4 1
5374
 
EOF
5375
 
 
5376
 
    cat >> confdefs.h <<\EOF
5377
 
#define SYSV 1
5378
 
EOF
5379
 
 
5380
 
    USE_NSPR_THREADS=1
5381
 
    if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then
5382
 
        cat >> confdefs.h <<\EOF
5383
 
#define _PR_NO_LARGE_FILES 1
5384
 
EOF
5385
 
 
5386
 
        CC='$(NSDEPTH)/build/hcc cc'
5387
 
        CXX='$(NSDEPTH)/build/hcpp CC'
5388
 
        MDCPUCFG_H=_unixware.cfg
5389
 
    else
5390
 
        cat >> confdefs.h <<\EOF
5391
 
#define _LARGEFILE64_SOURCE 1
5392
 
EOF
5393
 
 
5394
 
        cat >> confdefs.h <<\EOF
5395
 
#define _PR_HAVE_OFF64_T 1
5396
 
EOF
5397
 
 
5398
 
        cat >> confdefs.h <<\EOF
5399
 
#define _PR_HAVE_SOCKADDR_LEN 1
5400
 
EOF
5401
 
 
5402
 
        MDCPUCFG_H=_unixware7.cfg
5403
 
    fi
5404
 
    PR_MD_CSRCS=unixware.c
5405
 
    DSO_LDOPTS=-G
5406
 
    CPU_ARCH=x86
5407
 
    ;;
5408
 
 
5409
 
*-symbian*)
5410
 
    # Check whether --with-symbian-sdk or --without-symbian-sdk was given.
5411
 
if test "${with_symbian_sdk+set}" = set; then
5412
 
  withval="$with_symbian_sdk"
5413
 
  SYMBIAN_SDK_DIR=$withval
5414
 
fi
5415
 
 
5416
 
 
5417
 
    echo -----------------------------------------------------------------------------
5418
 
    echo Building with Symbian SDK in: $SYMBIAN_SDK_DIR
5419
 
    echo -----------------------------------------------------------------------------
5420
 
 
5421
 
    cat >> confdefs.h <<\EOF
5422
 
#define XP_UNIX 1
5423
 
EOF
5424
 
 
5425
 
    cat >> confdefs.h <<\EOF
5426
 
#define SYMBIAN 1
5427
 
EOF
5428
 
 
5429
 
    cat >> confdefs.h <<\EOF
5430
 
#define __arm__ 1
5431
 
EOF
5432
 
 
5433
 
    cat >> confdefs.h <<\EOF
5434
 
#define __SYMBIAN32__ 1
5435
 
EOF
5436
 
 
5437
 
    cat >> confdefs.h <<\EOF
5438
 
#define _UNICODE 1
5439
 
EOF
5440
 
 
5441
 
    cat >> confdefs.h <<\EOF
5442
 
#define NDEBUG 1
5443
 
EOF
5444
 
 
5445
 
    cat >> confdefs.h <<\EOF
5446
 
#define __SUPPORT_CPP_EXCEPTIONS__ 1
5447
 
EOF
5448
 
 
5449
 
    cat >> confdefs.h <<\EOF
5450
 
#define MOZ_STDERR_TO_STDOUT 1
5451
 
EOF
5452
 
 
5453
 
    cat >> confdefs.h <<\EOF
5454
 
#define HAVE_FCNTL_FILE_LOCKING 1
5455
 
EOF
5456
 
 
5457
 
    cat >> confdefs.h <<\EOF
5458
 
#define HAVE_SOCKLEN_T 1
5459
 
EOF
5460
 
 
5461
 
    USE_PTHREADS=1
5462
 
    LIB_SUFFIX=lib
5463
 
    DLL_SUFFIX=dll
5464
 
    MKSHLIB=
5465
 
    DSO_LDOPTS=
5466
 
    DSO_CFLAGS=
5467
 
    VISIBILITY_FLAGS=
5468
 
    MDCPUCFG_H=_symbian.cfg
5469
 
    PR_MD_CSRCS=symbian.c
5470
 
    NSINSTALL=nsinstall
5471
 
    RANLIB='echo no ranlib '
5472
 
    CPU_ARCH=ARM
5473
 
    OS_ARCH=SYMBIAN
5474
 
    OS_EXE_CFLAGS="$OS_EXE_CFLAGS -D__EXE__"
5475
 
    CFLAGS="$CFLAGS -MD -nostdinc"
5476
 
    SYMBIAN_SYS_INCLUDE="-I$SYMBIAN_SDK_DIR/Epoc32/include/variant -I$SYMBIAN_SDK_DIR/Epoc32/include -I$SYMBIAN_SDK_DIR/Epoc32/include/stdapis"
5477
 
    echo -------------------------------------------------------
5478
 
    echo SYMBIAN_SYS_INCLUDE is: $SYMBIAN_SYS_INCLUDE
5479
 
    echo -------------------------------------------------------
5480
 
    case "$OS_TARGET" in
5481
 
    WINSCW)
5482
 
        CC=mwccsym2.exe
5483
 
        CXX=mwccsym2.exe
5484
 
        LD=mwldsym2.exe
5485
 
        AR=mwldsym2.exe
5486
 
        WINSCW_LD_DIR="\$(SYMBIAN_SDK_DIR)/EPOC32/RELEASE/WINSCW/UDEB"
5487
 
        CFLAGS="$CFLAGS -O0 -inline off -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -nostderr -gccdep -cwd source -i- -I\$(VPATH)"
5488
 
        SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include Symbian_OS_v9.2.hrh"
5489
 
        AR_FLAGS="-library -msgstyle gcc -stdlib -subsystem windows -noimplib -o \$@"
5490
 
        cat >> confdefs.h <<\EOF
5491
 
#define _DEBUG 1
5492
 
EOF
5493
 
 
5494
 
        cat >> confdefs.h <<\EOF
5495
 
#define __CW32__ 1
5496
 
EOF
5497
 
 
5498
 
        cat >> confdefs.h <<\EOF
5499
 
#define __WINS__ 1
5500
 
EOF
5501
 
 
5502
 
        cat >> confdefs.h <<\EOF
5503
 
#define __WINSCW__ 1
5504
 
EOF
5505
 
 
5506
 
        DEFINES="$DEFINES -U_WIN32"
5507
 
            ;;
5508
 
    GCCE)
5509
 
        CFLAGS="$CFLAGS -Wall -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -x c -msoft-float"
5510
 
        CXXFLAGS="$CXXFLAGS $CFLAGS -Wno-ctor-dtor-privacy"
5511
 
        SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include $SYMBIAN_SDK_DIR/EPOC32/INCLUDE/GCCE/GCCE.h"
5512
 
        cat >> confdefs.h <<\EOF
5513
 
#define __GCCE__ 1
5514
 
EOF
5515
 
 
5516
 
        cat >> confdefs.h <<\EOF
5517
 
#define __EABI__ 1
5518
 
EOF
5519
 
 
5520
 
        DEFINES="$DEFINES -D__PRODUCT_INCLUDE__=$SYMBIAN_SDK_DIR/Epoc32/include/variant/Symbian_OS_v9.2.hrh"
5521
 
            ;;
5522
 
    *)
5523
 
            { echo "configure: error: Missing OS_TARGET for ${target}. Set --enable-symbian-target to with 'WINSCW' or 'GCCE'." 1>&2; exit 1; }
5524
 
        ;;
5525
 
    esac
5526
 
    CFLAGS="$CFLAGS ${SYMBIAN_SYS_INCLUDE}"
5527
 
    ;;
5528
 
 
5529
 
*-os2*)
5530
 
    cat >> confdefs.h <<\EOF
5531
 
#define XP_OS2 1
5532
 
EOF
5533
 
 
5534
 
    cat >> confdefs.h <<\EOF
5535
 
#define XP_PC 1
5536
 
EOF
5537
 
 
5538
 
    cat >> confdefs.h <<\EOF
5539
 
#define BSD_SELECT 1
5540
 
EOF
5541
 
 
5542
 
    cat >> confdefs.h <<\EOF
5543
 
#define TCPV40HDRS 1
5544
 
EOF
5545
 
 
5546
 
    LIB_SUFFIX=lib
5547
 
    DLL_SUFFIX=dll
5548
 
    RC=rc.exe
5549
 
    PR_MD_ARCH_DIR=os2
5550
 
    PROG_SUFFIX=.exe
5551
 
    NSINSTALL=nsinstall
5552
 
    MDCPUCFG_H=_os2.cfg
5553
 
    RESOLVE_LINK_SYMBOLS=1
5554
 
 
5555
 
    cat >> confdefs.h <<\EOF
5556
 
#define OS2 1
5557
 
EOF
5558
 
 
5559
 
    AR=emxomfar
5560
 
    AR_FLAGS='r $@'
5561
 
    CFLAGS="$CFLAGS -Wall -Zomf"
5562
 
    CXXFLAGS="$CFLAGS -Wall -Zomf"
5563
 
    MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
5564
 
    DSO_CFLAGS=
5565
 
    DSO_LDOPTS='-Zomf -Zdll'
5566
 
    LDFLAGS='-Zmap'
5567
 
    _OPTIMIZE_FLAGS="-O2 -s"
5568
 
    _DEBUG_FLAGS="-g -fno-inline"
5569
 
    if test -n "$MOZ_OPTIMIZE"; then
5570
 
      DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA"
5571
 
    fi
5572
 
    IMPLIB='emximp -o'
5573
 
    FILTER='emxexp -o'
5574
 
    if test -n "$MOZ_OS2_HIGH_MEMORY"; then
5575
 
      LDFLAGS="$LDFLAGS -Zhigh-mem"
5576
 
      cat >> confdefs.h <<\EOF
5577
 
#define MOZ_OS2_HIGH_MEMORY 1
5578
 
EOF
5579
 
 
5580
 
    fi
5581
 
 
5582
 
    # GCC for OS/2 currently predefines these, but we don't want them
5583
 
    DEFINES="$DEFINES -Uunix -U__unix -U__unix__"
5584
 
    ;;
5585
 
 
5586
 
*)
5587
 
    cat >> confdefs.h <<\EOF
5588
 
#define XP_UNIX 1
5589
 
EOF
5590
 
 
5591
 
    ;;
5592
 
   
5593
 
esac
5594
 
 
5595
 
if test -z "$SKIP_LIBRARY_CHECKS"; then
5596
 
 
5597
 
 
5598
 
 
5599
 
case $target in
5600
 
*-darwin*|*-beos*|*-os2*)
5601
 
    ;;
5602
 
*)
5603
 
    echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5604
 
echo "configure:5605: checking for dlopen in -ldl" >&5
5605
 
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5606
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5607
 
  echo $ac_n "(cached) $ac_c" 1>&6
5608
 
else
5609
 
  ac_save_LIBS="$LIBS"
5610
 
LIBS="-ldl  $LIBS"
5611
 
cat > conftest.$ac_ext <<EOF
5612
 
#line 5613 "configure"
5613
 
#include "confdefs.h"
5614
 
/* Override any gcc2 internal prototype to avoid an error.  */
5615
 
/* We use char because int might match the return type of a gcc2
5616
 
    builtin and then its argument prototype would still apply.  */
5617
 
char dlopen();
5618
 
 
5619
 
int main() {
5620
 
dlopen()
5621
 
; return 0; }
5622
 
EOF
5623
 
if { (eval echo configure:5624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624
 
  rm -rf conftest*
5625
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5626
 
else
5627
 
  echo "configure: failed program was:" >&5
5628
 
  cat conftest.$ac_ext >&5
5629
 
  rm -rf conftest*
5630
 
  eval "ac_cv_lib_$ac_lib_var=no"
5631
 
fi
5632
 
rm -f conftest*
5633
 
LIBS="$ac_save_LIBS"
5634
 
 
5635
 
fi
5636
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5637
 
  echo "$ac_t""yes" 1>&6
5638
 
  ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
5639
 
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
5640
 
echo "configure:5641: checking for dlfcn.h" >&5
5641
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5642
 
  echo $ac_n "(cached) $ac_c" 1>&6
5643
 
else
5644
 
  cat > conftest.$ac_ext <<EOF
5645
 
#line 5646 "configure"
5646
 
#include "confdefs.h"
5647
 
#include <dlfcn.h>
5648
 
EOF
5649
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5650
 
{ (eval echo configure:5651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5651
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5652
 
if test -z "$ac_err"; then
5653
 
  rm -rf conftest*
5654
 
  eval "ac_cv_header_$ac_safe=yes"
5655
 
else
5656
 
  echo "$ac_err" >&5
5657
 
  echo "configure: failed program was:" >&5
5658
 
  cat conftest.$ac_ext >&5
5659
 
  rm -rf conftest*
5660
 
  eval "ac_cv_header_$ac_safe=no"
5661
 
fi
5662
 
rm -f conftest*
5663
 
fi
5664
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5665
 
  echo "$ac_t""yes" 1>&6
5666
 
  OS_LIBS="-ldl $OS_LIBS"
5667
 
else
5668
 
  echo "$ac_t""no" 1>&6
5669
 
fi
5670
 
 
5671
 
else
5672
 
  echo "$ac_t""no" 1>&6
5673
 
fi
5674
 
 
5675
 
    ;;
5676
 
esac
5677
 
 
5678
 
 
5679
 
 
5680
 
 
5681
 
if test $ac_cv_prog_gcc = yes; then
5682
 
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
5683
 
echo "configure:5684: checking whether ${CC-cc} needs -traditional" >&5
5684
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5685
 
  echo $ac_n "(cached) $ac_c" 1>&6
5686
 
else
5687
 
    ac_pattern="Autoconf.*'x'"
5688
 
  cat > conftest.$ac_ext <<EOF
5689
 
#line 5690 "configure"
5690
 
#include "confdefs.h"
5691
 
#include <sgtty.h>
5692
 
Autoconf TIOCGETP
5693
 
EOF
5694
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5695
 
  egrep "$ac_pattern" >/dev/null 2>&1; then
5696
 
  rm -rf conftest*
5697
 
  ac_cv_prog_gcc_traditional=yes
5698
 
else
5699
 
  rm -rf conftest*
5700
 
  ac_cv_prog_gcc_traditional=no
5701
 
fi
5702
 
rm -f conftest*
5703
 
 
5704
 
 
5705
 
  if test $ac_cv_prog_gcc_traditional = no; then
5706
 
    cat > conftest.$ac_ext <<EOF
5707
 
#line 5708 "configure"
5708
 
#include "confdefs.h"
5709
 
#include <termio.h>
5710
 
Autoconf TCGETA
5711
 
EOF
5712
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5713
 
  egrep "$ac_pattern" >/dev/null 2>&1; then
5714
 
  rm -rf conftest*
5715
 
  ac_cv_prog_gcc_traditional=yes
5716
 
fi
5717
 
rm -f conftest*
5718
 
 
5719
 
  fi
5720
 
fi
5721
 
 
5722
 
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
5723
 
  if test $ac_cv_prog_gcc_traditional = yes; then
5724
 
    CC="$CC -traditional"
5725
 
  fi
5726
 
fi
5727
 
 
5728
 
for ac_func in lchown strerror
5729
 
do
5730
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5731
 
echo "configure:5732: checking for $ac_func" >&5
5732
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5733
 
  echo $ac_n "(cached) $ac_c" 1>&6
5734
 
else
5735
 
  cat > conftest.$ac_ext <<EOF
5736
 
#line 5737 "configure"
5737
 
#include "confdefs.h"
5738
 
/* System header to define __stub macros and hopefully few prototypes,
5739
 
    which can conflict with char $ac_func(); below.  */
5740
 
#include <assert.h>
5741
 
/* Override any gcc2 internal prototype to avoid an error.  */
5742
 
/* We use char because int might match the return type of a gcc2
5743
 
    builtin and then its argument prototype would still apply.  */
5744
 
char $ac_func();
5745
 
 
5746
 
int main() {
5747
 
 
5748
 
/* The GNU C library defines this for functions which it implements
5749
 
    to always fail with ENOSYS.  Some functions are actually named
5750
 
    something starting with __ and the normal name is an alias.  */
5751
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5752
 
choke me
5753
 
#else
5754
 
$ac_func();
5755
 
#endif
5756
 
 
5757
 
; return 0; }
5758
 
EOF
5759
 
if { (eval echo configure:5760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5760
 
  rm -rf conftest*
5761
 
  eval "ac_cv_func_$ac_func=yes"
5762
 
else
5763
 
  echo "configure: failed program was:" >&5
5764
 
  cat conftest.$ac_ext >&5
5765
 
  rm -rf conftest*
5766
 
  eval "ac_cv_func_$ac_func=no"
5767
 
fi
5768
 
rm -f conftest*
5769
 
fi
5770
 
 
5771
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5772
 
  echo "$ac_t""yes" 1>&6
5773
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5774
 
  cat >> confdefs.h <<EOF
5775
 
#define $ac_tr_func 1
5776
 
EOF
5777
 
 
5778
 
else
5779
 
  echo "$ac_t""no" 1>&6
5780
 
fi
5781
 
done
5782
 
 
5783
 
 
5784
 
 
5785
 
 
5786
 
# Check whether --with-ccache or --without-ccache was given.
5787
 
if test "${with_ccache+set}" = set; then
5788
 
  withval="$with_ccache"
5789
 
  CCACHE=$withval
5790
 
else
5791
 
  CCACHE="no"
5792
 
fi
5793
 
 
5794
 
 
5795
 
if test "$CCACHE" != "no"; then
5796
 
    if test -n "$CCACHE"; then
5797
 
        if test "$CCACHE" = "yes"; then
5798
 
            CCACHE=
5799
 
        else
5800
 
            if test ! -e "$CCACHE"; then
5801
 
                { echo "configure: error: $CCACHE not found" 1>&2; exit 1; }
5802
 
            fi
5803
 
        fi
5804
 
    fi
5805
 
    for ac_prog in $CCACHE ccache
5806
 
do
5807
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
5808
 
set dummy $ac_prog; ac_word=$2
5809
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5810
 
echo "configure:5811: checking for $ac_word" >&5
5811
 
if eval "test \"`echo '$''{'ac_cv_path_CCACHE'+set}'`\" = set"; then
5812
 
  echo $ac_n "(cached) $ac_c" 1>&6
5813
 
else
5814
 
  case "$CCACHE" in
5815
 
  /*)
5816
 
  ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
5817
 
  ;;
5818
 
  ?:/*)                  
5819
 
  ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a dos path.
5820
 
  ;;
5821
 
  *)
5822
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5823
 
  ac_dummy="$PATH"
5824
 
  for ac_dir in $ac_dummy; do 
5825
 
    test -z "$ac_dir" && ac_dir=.
5826
 
    if test -f $ac_dir/$ac_word; then
5827
 
      ac_cv_path_CCACHE="$ac_dir/$ac_word"
5828
 
      break
5829
 
    fi
5830
 
  done
5831
 
  IFS="$ac_save_ifs"
5832
 
  ;;
5833
 
esac
5834
 
fi
5835
 
CCACHE="$ac_cv_path_CCACHE"
5836
 
if test -n "$CCACHE"; then
5837
 
  echo "$ac_t""$CCACHE" 1>&6
5838
 
else
5839
 
  echo "$ac_t""no" 1>&6
5840
 
fi
5841
 
 
5842
 
test -n "$CCACHE" && break
5843
 
done
5844
 
 
5845
 
    if test -z "$CCACHE" -o "$CCACHE" = ":"; then
5846
 
        { echo "configure: error: ccache not found" 1>&2; exit 1; }
5847
 
    elif test -x "$CCACHE"; then
5848
 
        CC="$CCACHE $CC"
5849
 
        CXX="$CCACHE $CXX"
5850
 
    else
5851
 
        { echo "configure: error: $CCACHE is not executable" 1>&2; exit 1; }
5852
 
    fi
5853
 
fi
5854
 
 
5855
 
# Check whether --enable-strip or --disable-strip was given.
5856
 
if test "${enable_strip+set}" = set; then
5857
 
  enableval="$enable_strip"
5858
 
   if test "$enableval" = "yes"; then
5859
 
            ENABLE_STRIP=1
5860
 
      fi 
5861
 
fi
5862
 
 
5863
 
 
5864
 
case "${target_os}" in
5865
 
hpux*)
5866
 
if test -z "$GNU_CC"; then
5867
 
 
5868
 
    echo $ac_n "checking for +Olit support""... $ac_c" 1>&6
5869
 
echo "configure:5870: checking for +Olit support" >&5
5870
 
if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then
5871
 
  echo $ac_n "(cached) $ac_c" 1>&6
5872
 
else
5873
 
                  ac_cv_hpux_usable_olit_option=no
5874
 
        rm -f conftest*
5875
 
        echo 'int main() { return 0; }' | cat > conftest.c
5876
 
        ${CC-cc} ${CFLAGS} +Olit=all -o conftest conftest.c > conftest.out 2>&1
5877
 
        if test $? -eq 0; then
5878
 
            if test -z "`egrep -i '(unrecognize|unknown)' conftest.out`"; then
5879
 
                ac_cv_hpux_usable_olit_option=yes
5880
 
            fi
5881
 
        fi
5882
 
        rm -f conftest*
5883
 
        
5884
 
fi
5885
 
 
5886
 
echo "$ac_t""$ac_cv_hpux_usable_olit_option" 1>&6
5887
 
 
5888
 
    if test "$ac_cv_hpux_usable_olit_option" = "yes"; then
5889
 
        CFLAGS="$CFLAGS +Olit=all"
5890
 
        CXXFLAGS="$CXXFLAGS +Olit=all"
5891
 
    else
5892
 
        CFLAGS="$CFLAGS +ESlit"
5893
 
        CXXFLAGS="$CXXFLAGS +ESlit"
5894
 
    fi
5895
 
fi
5896
 
;;
5897
 
esac
5898
 
 
5899
 
 
5900
 
 
5901
 
case "$target_os" in
5902
 
darwin*)
5903
 
    _HAVE_PTHREADS=1
5904
 
    ;;
5905
 
wince*)
5906
 
    _HAVE_PTHREADS=
5907
 
    ;;
5908
 
*)
5909
 
    
5910
 
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
5911
 
echo "configure:5912: checking for pthread_create in -lpthreads" >&5
5912
 
echo "
5913
 
    #include <pthread.h> 
5914
 
    void *foo(void *v) { return v; } 
5915
 
    int main() { 
5916
 
        pthread_t t;
5917
 
        if (!pthread_create(&t, 0, &foo, 0)) {
5918
 
            pthread_join(t, 0);
5919
 
        }
5920
 
        return 0;
5921
 
    }" > dummy.c ;
5922
 
    echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS" 1>&5;
5923
 
    ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS 2>&5;
5924
 
    _res=$? ;
5925
 
    rm -f dummy.c dummy${ac_exeext} ;
5926
 
    if test "$_res" = "0"; then
5927
 
        echo "$ac_t""yes" 1>&6
5928
 
        _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads"
5929
 
    else
5930
 
        echo "$ac_t""no" 1>&6
5931
 
        
5932
 
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
5933
 
echo "configure:5934: checking for pthread_create in -lpthread" >&5
5934
 
echo "
5935
 
    #include <pthread.h> 
5936
 
    void *foo(void *v) { return v; } 
5937
 
    int main() { 
5938
 
        pthread_t t;
5939
 
        if (!pthread_create(&t, 0, &foo, 0)) {
5940
 
            pthread_join(t, 0);
5941
 
        }
5942
 
        return 0;
5943
 
    }" > dummy.c ;
5944
 
    echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS" 1>&5;
5945
 
    ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS 2>&5;
5946
 
    _res=$? ;
5947
 
    rm -f dummy.c dummy${ac_exeext} ;
5948
 
    if test "$_res" = "0"; then
5949
 
        echo "$ac_t""yes" 1>&6
5950
 
        _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread"
5951
 
    else
5952
 
        echo "$ac_t""no" 1>&6
5953
 
        
5954
 
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
5955
 
echo "configure:5956: checking for pthread_create in -lc_r" >&5
5956
 
echo "
5957
 
    #include <pthread.h> 
5958
 
    void *foo(void *v) { return v; } 
5959
 
    int main() { 
5960
 
        pthread_t t;
5961
 
        if (!pthread_create(&t, 0, &foo, 0)) {
5962
 
            pthread_join(t, 0);
5963
 
        }
5964
 
        return 0;
5965
 
    }" > dummy.c ;
5966
 
    echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS" 1>&5;
5967
 
    ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS 2>&5;
5968
 
    _res=$? ;
5969
 
    rm -f dummy.c dummy${ac_exeext} ;
5970
 
    if test "$_res" = "0"; then
5971
 
        echo "$ac_t""yes" 1>&6
5972
 
        _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r"
5973
 
    else
5974
 
        echo "$ac_t""no" 1>&6
5975
 
        
5976
 
echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
5977
 
echo "configure:5978: checking for pthread_create in -lc" >&5
5978
 
echo "
5979
 
    #include <pthread.h> 
5980
 
    void *foo(void *v) { return v; } 
5981
 
    int main() { 
5982
 
        pthread_t t;
5983
 
        if (!pthread_create(&t, 0, &foo, 0)) {
5984
 
            pthread_join(t, 0);
5985
 
        }
5986
 
        return 0;
5987
 
    }" > dummy.c ;
5988
 
    echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS" 1>&5;
5989
 
    ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS 2>&5;
5990
 
    _res=$? ;
5991
 
    rm -f dummy.c dummy${ac_exeext} ;
5992
 
    if test "$_res" = "0"; then
5993
 
        echo "$ac_t""yes" 1>&6
5994
 
        _HAVE_PTHREADS=1
5995
 
                
5996
 
    else
5997
 
        echo "$ac_t""no" 1>&6
5998
 
        
5999
 
    fi
6000
 
 
6001
 
            
6002
 
    fi
6003
 
 
6004
 
        
6005
 
    fi
6006
 
 
6007
 
    
6008
 
    fi
6009
 
 
6010
 
    ;;
6011
 
esac
6012
 
 
6013
 
# Check whether --with-pthreads or --without-pthreads was given.
6014
 
if test "${with_pthreads+set}" = set; then
6015
 
  withval="$with_pthreads"
6016
 
   if test "$withval" = "yes"; then
6017
 
            if test -n "$_HAVE_PTHREADS"; then
6018
 
                    USE_PTHREADS=1 
6019
 
                    USE_USER_PTHREADS=
6020
 
                    USE_NSPR_THREADS=
6021
 
            else
6022
 
                    { echo "configure: error:  --with-pthreads specified for a system without pthread support " 1>&2; exit 1; };
6023
 
            fi
6024
 
          else
6025
 
            USE_PTHREADS=
6026
 
            _PTHREAD_LDFLAGS=
6027
 
          fi
6028
 
else
6029
 
   if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then
6030
 
            USE_PTHREADS=1
6031
 
            USE_USER_PTHREADS=
6032
 
            USE_NSPR_THREADS=
6033
 
          fi
6034
 
fi
6035
 
 
6036
 
 
6037
 
# Check whether --enable-user-pthreads or --disable-user-pthreads was given.
6038
 
if test "${enable_user_pthreads+set}" = set; then
6039
 
  enableval="$enable_user_pthreads"
6040
 
   if test "$enableval" = "yes"; then
6041
 
        if test -n "$_HAVE_PTHREADS"; then
6042
 
                    USE_PTHREADS=
6043
 
                    USE_USER_PTHREADS=1
6044
 
                    USE_NSPR_THREADS=
6045
 
            else
6046
 
                    { echo "configure: error:  --enable-user-pthreads specified for a system without pthread support " 1>&2; exit 1; };
6047
 
            fi
6048
 
          fi
6049
 
fi
6050
 
 
6051
 
 
6052
 
# Check whether --enable-nspr-threads or --disable-nspr-threads was given.
6053
 
if test "${enable_nspr_threads+set}" = set; then
6054
 
  enableval="$enable_nspr_threads"
6055
 
   if test "$enableval" = "yes"; then
6056
 
            USE_PTHREADS=
6057
 
            USE_USER_PTHREADS=
6058
 
            USE_NSPR_THREADS=1
6059
 
          fi
6060
 
fi
6061
 
 
6062
 
 
6063
 
case "$target" in
6064
 
*-beos*)
6065
 
    # Check whether --with-bthreads or --without-bthreads was given.
6066
 
if test "${with_bthreads+set}" = set; then
6067
 
  withval="$with_bthreads"
6068
 
        if test "$withval" = "yes"; then
6069
 
            USE_BTHREADS=1
6070
 
                USE_USER_PTHREADS=
6071
 
                USE_PTHREADS=
6072
 
            fi
6073
 
fi
6074
 
 
6075
 
    ;;
6076
 
esac
6077
 
 
6078
 
fi # SKIP_LIBRARY_CHECKS
6079
 
 
6080
 
# Check whether --enable-ipv6 or --disable-ipv6 was given.
6081
 
if test "${enable_ipv6+set}" = set; then
6082
 
  enableval="$enable_ipv6"
6083
 
   if test "$enableval" = "yes"; then
6084
 
            USE_IPV6=1
6085
 
      else
6086
 
            USE_IPV6=
6087
 
      fi
6088
 
fi
6089
 
 
6090
 
 
6091
 
if test -n "$USE_PTHREADS"; then
6092
 
      rm -f conftest*
6093
 
   ac_cv_have_dash_pthread=no
6094
 
   echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
6095
 
echo "configure:6096: checking whether ${CC-cc} accepts -pthread" >&5
6096
 
   echo 'int main() { return 0; }' | cat > conftest.c
6097
 
   ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
6098
 
   if test $? -eq 0; then
6099
 
        if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
6100
 
            ac_cv_have_dash_pthread=yes
6101
 
                case "$target_os" in
6102
 
            freebsd*)
6103
 
# Freebsd doesn't use -pthread for compiles, it uses them for linking
6104
 
            ;;
6105
 
            *)
6106
 
            CFLAGS="$CFLAGS -pthread"
6107
 
            CXXFLAGS="$CXXFLAGS -pthread"
6108
 
            ;;
6109
 
        esac
6110
 
        fi
6111
 
    fi
6112
 
    rm -f conftest*
6113
 
    echo "$ac_t""$ac_cv_have_dash_pthread" 1>&6
6114
 
 
6115
 
                            ac_cv_have_dash_pthreads=no
6116
 
    if test "$ac_cv_have_dash_pthread" = "no"; then
6117
 
            echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
6118
 
echo "configure:6119: checking whether ${CC-cc} accepts -pthreads" >&5
6119
 
        echo 'int main() { return 0; }' | cat > conftest.c
6120
 
            ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
6121
 
        if test $? -eq 0; then
6122
 
                if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
6123
 
                            ac_cv_have_dash_pthreads=yes
6124
 
                            CFLAGS="$CFLAGS -pthreads"
6125
 
                            CXXFLAGS="$CXXFLAGS -pthreads"
6126
 
                    fi
6127
 
            fi
6128
 
            rm -f conftest*
6129
 
        echo "$ac_t""$ac_cv_have_dash_pthreads" 1>&6
6130
 
    fi
6131
 
 
6132
 
    case "$target" in
6133
 
    *-solaris*)
6134
 
        if test "$ac_cv_have_dash_pthreads" = "yes"; then
6135
 
            _PTHREAD_LDFLAGS=
6136
 
        fi
6137
 
            ;;
6138
 
    *-freebsd*)
6139
 
            cat >> confdefs.h <<\EOF
6140
 
#define _REENTRANT 1
6141
 
EOF
6142
 
 
6143
 
            cat >> confdefs.h <<\EOF
6144
 
#define _THREAD_SAFE 1
6145
 
EOF
6146
 
 
6147
 
                    if test "$ac_cv_have_dash_pthread" = "yes"; then
6148
 
                _PTHREAD_LDFLAGS="-pthread"
6149
 
            else
6150
 
                _PTHREAD_LDFLAGS="-lc_r"
6151
 
            fi
6152
 
            ;;
6153
 
    *-netbsd*)
6154
 
            if test "$ac_cv_have_dash_pthread" = "yes"; then
6155
 
                _PTHREAD_LDFLAGS="-pthread"
6156
 
            fi
6157
 
            ;;
6158
 
    *-bsdi*)
6159
 
            cat >> confdefs.h <<\EOF
6160
 
#define _THREAD_SAFE 1
6161
 
EOF
6162
 
 
6163
 
                    if test "$ac_cv_have_dash_pthread" = "yes"; then
6164
 
                _PTHREAD_LDFLAGS=
6165
 
            fi
6166
 
            ;;
6167
 
    *-openbsd*)
6168
 
        if test "$ac_cv_have_dash_pthread" = "yes"; then
6169
 
            _PTHREAD_LDFLAGS=-pthread
6170
 
        fi
6171
 
        ;;
6172
 
    *-linux*|*-gnu*|*-k*bsd*-gnu)
6173
 
        cat >> confdefs.h <<\EOF
6174
 
#define _REENTRANT 1
6175
 
EOF
6176
 
 
6177
 
        ;;
6178
 
    esac
6179
 
 
6180
 
else 
6181
 
    if test -n "$USE_USER_PTHREADS"; then
6182
 
            USE_PTHREADS=
6183
 
            USE_NSPR_THREADS=
6184
 
    else
6185
 
        _PTHREAD_LDFLAGS=
6186
 
    fi
6187
 
fi
6188
 
 
6189
 
case "$target" in
6190
 
*-aix*)
6191
 
    if test -n "$USE_NSPR_THREADS"; then
6192
 
        cat >> confdefs.h <<\EOF
6193
 
#define _PR_LOCAL_THREADS_ONLY 1
6194
 
EOF
6195
 
 
6196
 
    fi
6197
 
    case "$target_os" in
6198
 
    aix4.1*)
6199
 
        if test -z "$USE_PTHREADS"; then
6200
 
            cat >> confdefs.h <<\EOF
6201
 
#define AIX_RENAME_SELECT 1
6202
 
EOF
6203
 
 
6204
 
        fi
6205
 
        ;;
6206
 
    aix4.2*)
6207
 
        if test -z "$USE_NSPR_THREADS"; then
6208
 
            cat >> confdefs.h <<\EOF
6209
 
#define HAVE_POINTER_LOCALTIME_R 1
6210
 
EOF
6211
 
 
6212
 
        fi
6213
 
        ;;
6214
 
    aix4.3*)
6215
 
        if test -z "$USE_NSPR_THREADS"; then
6216
 
            cat >> confdefs.h <<\EOF
6217
 
#define HAVE_POINTER_LOCALTIME_R 1
6218
 
EOF
6219
 
 
6220
 
        fi
6221
 
        if test -n "$USE_PTHREADS"; then
6222
 
            cat >> confdefs.h <<\EOF
6223
 
#define _PR_HAVE_THREADSAFE_GETHOST 1
6224
 
EOF
6225
 
 
6226
 
        fi
6227
 
        ;;
6228
 
    *)
6229
 
        if test -z "$USE_NSPR_THREADS"; then
6230
 
            cat >> confdefs.h <<\EOF
6231
 
#define HAVE_POINTER_LOCALTIME_R 1
6232
 
EOF
6233
 
 
6234
 
        fi
6235
 
        if test -n "$USE_PTHREADS"; then
6236
 
            cat >> confdefs.h <<\EOF
6237
 
#define _PR_HAVE_THREADSAFE_GETHOST 1
6238
 
EOF
6239
 
 
6240
 
        fi
6241
 
        ;;
6242
 
    esac
6243
 
    ;;
6244
 
*-bsdi*)
6245
 
    if test -n "$USE_PTHREADS"; then
6246
 
        cat >> confdefs.h <<\EOF
6247
 
#define _PR_NEED_PTHREAD_INIT 1
6248
 
EOF
6249
 
 
6250
 
    fi
6251
 
    ;;
6252
 
*-freebsd*)
6253
 
    if test -n "$USE_NSPR_THREADS"; then
6254
 
        cat >> confdefs.h <<\EOF
6255
 
#define _PR_LOCAL_THREADS_ONLY 1
6256
 
EOF
6257
 
 
6258
 
    fi
6259
 
    ;;
6260
 
*-hpux*)
6261
 
    if test -n "$USE_NSPR_THREADS"; then
6262
 
        cat >> confdefs.h <<\EOF
6263
 
#define _PR_LOCAL_THREADS_ONLY 1
6264
 
EOF
6265
 
 
6266
 
    fi 
6267
 
    if test "$USE_PTHREADS"; then
6268
 
        if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
6269
 
            cat >> confdefs.h <<\EOF
6270
 
#define _REENTRANT 1
6271
 
EOF
6272
 
 
6273
 
            cat >> confdefs.h <<\EOF
6274
 
#define _PR_DCETHREADS 1
6275
 
EOF
6276
 
 
6277
 
        else
6278
 
            cat >> confdefs.h <<EOF
6279
 
#define _POSIX_C_SOURCE 199506L
6280
 
EOF
6281
 
 
6282
 
            cat >> confdefs.h <<\EOF
6283
 
#define _PR_HAVE_THREADSAFE_GETHOST 1
6284
 
EOF
6285
 
 
6286
 
        fi
6287
 
    fi
6288
 
    if test "$USE_USER_PTHREADS"; then
6289
 
        cat >> confdefs.h <<EOF
6290
 
#define _POSIX_C_SOURCE 199506L
6291
 
EOF
6292
 
 
6293
 
    fi
6294
 
    ;;
6295
 
*-irix*)
6296
 
    if test "${target_os}" = "irix6.5"; then
6297
 
        if test -n "$USE_PTHREADS"; then
6298
 
            cat >> confdefs.h <<\EOF
6299
 
#define _PR_HAVE_GETHOST_R 1
6300
 
EOF
6301
 
 
6302
 
            cat >> confdefs.h <<\EOF
6303
 
#define _PR_HAVE_GETHOST_R_POINTER 1
6304
 
EOF
6305
 
 
6306
 
        fi
6307
 
    fi
6308
 
    ;;
6309
 
*-linux*|*-gnu*|*-k*bsd*-gnu)
6310
 
    if test -n "$USE_NSPR_THREADS"; then
6311
 
        cat >> confdefs.h <<\EOF
6312
 
#define _PR_LOCAL_THREADS_ONLY 1
6313
 
EOF
6314
 
 
6315
 
    fi
6316
 
    ;;
6317
 
*-mingw*|*-cygwin*|*-msvc*|*-mks*|*-wince*|*-winmo*|*-os2*|*-beos*)
6318
 
        USE_PTHREADS=
6319
 
    _PTHREAD_LDFLAGS=
6320
 
    USE_USER_PTHREADS=
6321
 
    ;;
6322
 
*-netbsd*|*-openbsd*)
6323
 
    if test -n "$USE_NSPR_THREADS"; then
6324
 
        cat >> confdefs.h <<\EOF
6325
 
#define _PR_LOCAL_THREADS_ONLY 1
6326
 
EOF
6327
 
 
6328
 
    fi
6329
 
    ;;
6330
 
*-osf*)
6331
 
    if test -n "$USE_NSPR_THREADS"; then
6332
 
        cat >> confdefs.h <<\EOF
6333
 
#define _PR_LOCAL_THREADS_ONLY 1
6334
 
EOF
6335
 
 
6336
 
    fi
6337
 
    if test -n "$USE_PTHREADS"; then
6338
 
        if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then
6339
 
            :
6340
 
        else
6341
 
            cat >> confdefs.h <<\EOF
6342
 
#define _PR_HAVE_THREADSAFE_GETHOST 1
6343
 
EOF
6344
 
 
6345
 
        fi
6346
 
    fi
6347
 
    ;;
6348
 
*-solaris*)
6349
 
    if test -n "$USE_NSPR_THREADS"; then
6350
 
        cat >> confdefs.h <<\EOF
6351
 
#define _PR_LOCAL_THREADS_ONLY 1
6352
 
EOF
6353
 
 
6354
 
    fi
6355
 
    if test -n "$USE_PTHREADS"; then
6356
 
        cat >> confdefs.h <<\EOF
6357
 
#define _REENTRANT 1
6358
 
EOF
6359
 
 
6360
 
        cat >> confdefs.h <<\EOF
6361
 
#define HAVE_POINTER_LOCALTIME_R 1
6362
 
EOF
6363
 
 
6364
 
        if test "$OS_TEST" = "i86pc"; then
6365
 
            if test -n "$USE_64"; then
6366
 
               PR_MD_ASFILES=os_SunOS_x86_64.s
6367
 
            else
6368
 
               PR_MD_ASFILES=os_SunOS_x86.s
6369
 
            fi
6370
 
        else
6371
 
            if test -n "$USE_64"; then
6372
 
                PR_MD_ASFILES=os_SunOS_sparcv9.s
6373
 
            fi
6374
 
        fi
6375
 
    fi
6376
 
    ;;
6377
 
*-nto*)
6378
 
    if test -n "$USE_PTHREADS"; then
6379
 
        cat >> confdefs.h <<\EOF
6380
 
#define _PR_HAVE_GETHOST_R 1
6381
 
EOF
6382
 
 
6383
 
        cat >> confdefs.h <<\EOF
6384
 
#define _PR_HAVE_GETHOST_R_POINTER 1
6385
 
EOF
6386
 
 
6387
 
    fi
6388
 
    ;;
6389
 
esac
6390
 
 
6391
 
OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS"
6392
 
 
6393
 
if test -n "$_SAVE_OPTIMIZE_FLAGS"; then
6394
 
    _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS"
6395
 
fi
6396
 
 
6397
 
if test -n "$_SAVE_DEBUG_FLAGS"; then
6398
 
    _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS"
6399
 
fi
6400
 
 
6401
 
if test -n "$MOZ_OPTIMIZE"; then
6402
 
    CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS"
6403
 
    CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS"
6404
 
fi
6405
 
 
6406
 
if test -n "$MOZ_DEBUG_SYMBOLS"; then
6407
 
    CFLAGS="$CFLAGS $_DEBUG_FLAGS"
6408
 
    CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS"
6409
 
fi
6410
 
 
6411
 
if test -n "$MOZ_OPTIMIZE"; then
6412
 
    OBJDIR_TAG=_OPT
6413
 
else
6414
 
    OBJDIR_TAG=_DBG
6415
 
fi
6416
 
 
6417
 
if test -n "$USE_64"; then
6418
 
    COMPILER_TAG=_64
6419
 
fi
6420
 
 
6421
 
RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}"
6422
 
 
6423
 
case "$target_os" in
6424
 
cygwin*|msvc*|mks*)
6425
 
    CC="\$(CYGWIN_WRAPPER) $CC"
6426
 
    CXX="\$(CYGWIN_WRAPPER) $CXX"
6427
 
    RC="\$(CYGWIN_WRAPPER) $RC"
6428
 
    ;;
6429
 
esac
6430
 
 
6431
 
# Check whether --enable-wrap-malloc or --disable-wrap-malloc was given.
6432
 
if test "${enable_wrap_malloc+set}" = set; then
6433
 
  enableval="$enable_wrap_malloc"
6434
 
       if test "$enableval" = "yes"; then
6435
 
            _WRAP_MALLOC=1
6436
 
      fi 
6437
 
fi
6438
 
 
6439
 
 
6440
 
if test -n "$_WRAP_MALLOC"; then
6441
 
    if test "$GNU_CC"; then
6442
 
       WRAP_MALLOC_CFLAGS="${LDFLAGS} ${WRAP_MALLOC_CFLAGS} -Wl,--wrap -Wl,malloc -Wl,--wrap -Wl,calloc -Wl,--wrap -Wl,valloc -Wl,--wrap -Wl,free -Wl,--wrap -Wl,realloc -Wl,--wrap -Wl,memalign -Wl,--wrap -Wl,__builtin_new -Wl,--wrap -Wl,__builtin_vec_new -Wl,--wrap -Wl,__builtin_delete -Wl,--wrap -Wl,__builtin_vec_delete -Wl,--wrap -Wl,PR_Free -Wl,--wrap -Wl,PR_Malloc -Wl,--wrap -Wl,PR_Calloc -Wl,--wrap -Wl,PR_Realloc -Wl,--wrap -Wl,strdup -Wl,--wrap -Wl,strndup -Wl,--wrap -Wl,posix_memalign"
6443
 
       DSO_LDOPTS="$DSO_LDOPTS $WRAP_MALLOC_CFLAGS"
6444
 
    else
6445
 
       { echo "configure: error: --enable-wrap-malloc is not supported for non-GNU toolchains" 1>&2; exit 1; }
6446
 
    fi
6447
 
fi
6448
 
 
6449
 
# Check whether --with-wrap-malloc or --without-wrap-malloc was given.
6450
 
if test "${with_wrap_malloc+set}" = set; then
6451
 
  withval="$with_wrap_malloc"
6452
 
  WRAP_MALLOC_LIB=$withval
6453
 
fi
6454
 
 
6455
 
 
6456
 
 
6457
 
 
6458
 
 
6459
 
 
6460
 
 
6461
 
 
6462
 
 
6463
 
 
6464
 
 
6465
 
 
6466
 
 
6467
 
 
6468
 
 
6469
 
 
6470
 
 
6471
 
 
6472
 
 
6473
 
 
6474
 
 
6475
 
 
6476
 
 
6477
 
 
6478
 
 
6479
 
 
6480
 
 
6481
 
 
6482
 
 
6483
 
 
6484
 
 
6485
 
 
6486
 
 
6487
 
 
6488
 
 
6489
 
 
6490
 
 
6491
 
 
6492
 
 
6493
 
 
6494
 
 
6495
 
 
6496
 
 
6497
 
 
6498
 
 
6499
 
 
6500
 
 
6501
 
 
6502
 
 
6503
 
 
6504
 
 
6505
 
 
6506
 
 
6507
 
 
6508
 
 
6509
 
 
6510
 
 
6511
 
 
6512
 
 
6513
 
 
6514
 
 
6515
 
 
6516
 
 
6517
 
 
6518
 
 
6519
 
 
6520
 
 
6521
 
 
6522
 
 
6523
 
 
6524
 
 
6525
 
 
6526
 
 
6527
 
 
6528
 
 
6529
 
 
6530
 
 
6531
 
 
6532
 
 
6533
 
 
6534
 
 
6535
 
 
6536
 
 
6537
 
 
6538
 
 
6539
 
 
6540
 
 
6541
 
 
6542
 
 
6543
 
 
6544
 
 
6545
 
 
6546
 
 
6547
 
 
6548
 
 
6549
 
 
6550
 
 
6551
 
 
6552
 
 
6553
 
 
6554
 
 
6555
 
 
6556
 
 
6557
 
 
6558
 
 
6559
 
 
6560
 
 
6561
 
MAKEFILES="
6562
 
Makefile 
6563
 
config/Makefile
6564
 
config/autoconf.mk
6565
 
config/nsprincl.mk
6566
 
config/nsprincl.sh
6567
 
config/nspr-config
6568
 
lib/Makefile 
6569
 
lib/ds/Makefile 
6570
 
lib/libc/Makefile 
6571
 
lib/libc/include/Makefile 
6572
 
lib/libc/src/Makefile 
6573
 
lib/tests/Makefile
6574
 
pkg/Makefile
6575
 
pkg/linux/Makefile
6576
 
pkg/solaris/Makefile
6577
 
pkg/solaris/SUNWpr/Makefile
6578
 
pkg/solaris/SUNWprd/Makefile
6579
 
pr/Makefile 
6580
 
pr/include/Makefile 
6581
 
pr/include/md/Makefile 
6582
 
pr/include/obsolete/Makefile 
6583
 
pr/include/private/Makefile 
6584
 
pr/src/Makefile 
6585
 
pr/src/io/Makefile 
6586
 
pr/src/linking/Makefile 
6587
 
pr/src/malloc/Makefile 
6588
 
pr/src/md/Makefile 
6589
 
pr/src/md/${PR_MD_ARCH_DIR}/Makefile 
6590
 
pr/src/memory/Makefile 
6591
 
pr/src/misc/Makefile 
6592
 
pr/src/threads/Makefile 
6593
 
pr/tests/Makefile 
6594
 
pr/tests/dll/Makefile 
6595
 
"
6596
 
 
6597
 
 
6598
 
if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then
6599
 
    MAKEFILES="$MAKEFILES pr/src/threads/combined/Makefile"
6600
 
elif test -n "$USE_PTHREADS"; then
6601
 
    MAKEFILES="$MAKEFILES pr/src/pthreads/Makefile"
6602
 
elif test -n "$USE_BTHREADS"; then
6603
 
    MAKEFILES="$MAKEFILES pr/src/bthreads/Makefile"
6604
 
fi
6605
 
 
6606
 
if test -n "$USE_CPLUS"; then
6607
 
    MAKEFILES="$MAKEFILES pr/src/cplus/Makefile pr/src/cplus/tests/Makefile"
6608
 
fi
6609
 
 
6610
 
echo $MAKEFILES > unallmakefiles
6611
 
 
6612
 
trap '' 1 2 15
6613
 
cat > confcache <<\EOF
6614
 
# This file is a shell script that caches the results of configure
6615
 
# tests run on this system so they can be shared between configure
6616
 
# scripts and configure runs.  It is not useful on other systems.
6617
 
# If it contains results you don't want to keep, you may remove or edit it.
6618
 
#
6619
 
# By default, configure uses ./config.cache as the cache file,
6620
 
# creating it if it does not exist already.  You can give configure
6621
 
# the --cache-file=FILE option to use a different cache file; that is
6622
 
# what configure does when it calls configure scripts in
6623
 
# subdirectories, so they share the cache.
6624
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
6625
 
# config.status only pays attention to the cache file if you give it the
6626
 
# --recheck option to rerun configure.
6627
 
#
6628
 
EOF
6629
 
# The following way of writing the cache mishandles newlines in values,
6630
 
# but we know of no workaround that is simple, portable, and efficient.
6631
 
# So, don't put newlines in cache variables' values.
6632
 
# Ultrix sh set writes to stderr and can't be redirected directly,
6633
 
# and sets the high bit in the cache file unless we assign to the vars.
6634
 
(set) 2>&1 |
6635
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
6636
 
  *ac_space=\ *)
6637
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
6638
 
    # turns \\\\ into \\, and sed turns \\ into \).
6639
 
    sed -n \
6640
 
      -e "s/'/'\\\\''/g" \
6641
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6642
 
    ;;
6643
 
  *)
6644
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
6645
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6646
 
    ;;
6647
 
  esac >> confcache
6648
 
if cmp -s $cache_file confcache; then
6649
 
  :
6650
 
else
6651
 
  if test -w $cache_file; then
6652
 
    echo "updating cache $cache_file"
6653
 
    cat confcache > $cache_file
6654
 
  else
6655
 
    echo "not updating unwritable cache $cache_file"
6656
 
  fi
6657
 
fi
6658
 
rm -f confcache
6659
 
 
6660
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6661
 
 
6662
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6663
 
# Let make expand exec_prefix.
6664
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6665
 
 
6666
 
# Any assignment to VPATH causes Sun make to only execute
6667
 
# the first set of double-colon rules, so remove it if not needed.
6668
 
# If there is a colon in the path, we need to keep it.
6669
 
if test "x$srcdir" = x.; then
6670
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
6671
 
fi
6672
 
 
6673
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6674
 
 
6675
 
# Transform confdefs.h into DEFS.
6676
 
# Protect against shell expansion while executing Makefile rules.
6677
 
# Protect against Makefile macro expansion.
6678
 
cat > conftest.defs <<\EOF
6679
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
6680
 
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
6681
 
s%\[%\\&%g
6682
 
s%\]%\\&%g
6683
 
s%\$%$$%g
6684
 
EOF
6685
 
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' ' | tr '\015' ' '` # Manually modified for MKS support.
6686
 
rm -f conftest.defs
6687
 
 
6688
 
 
6689
 
# Without the "./", some shells look in PATH for config.status.
6690
 
: ${CONFIG_STATUS=./config.status}
6691
 
 
6692
 
echo creating $CONFIG_STATUS
6693
 
rm -f $CONFIG_STATUS
6694
 
cat > $CONFIG_STATUS <<EOF
6695
 
#! /bin/sh
6696
 
# Generated automatically by configure.
6697
 
# Run this file to recreate the current configuration.
6698
 
# This directory was configured as follows,
6699
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6700
 
#
6701
 
# $0 $ac_configure_args
6702
 
#
6703
 
# Compiler output produced by configure, useful for debugging
6704
 
# configure, is in ./config.log if it exists.
6705
 
 
6706
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6707
 
for ac_option
6708
 
do
6709
 
  case "\$ac_option" in
6710
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6711
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6712
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6713
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6714
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
6715
 
    exit 0 ;;
6716
 
  -help | --help | --hel | --he | --h)
6717
 
    echo "\$ac_cs_usage"; exit 0 ;;
6718
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
6719
 
  esac
6720
 
done
6721
 
 
6722
 
ac_given_srcdir=$srcdir
6723
 
 
6724
 
trap 'rm -fr `echo "$MAKEFILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6725
 
EOF
6726
 
cat >> $CONFIG_STATUS <<EOF
6727
 
 
6728
 
 
6729
 
 
6730
 
# Protect against being on the right side of a sed subst in config.status.
6731
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6732
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6733
 
$ac_vpsub
6734
 
$extrasub
6735
 
s%@SHELL@%$SHELL%g
6736
 
s%@CFLAGS@%$CFLAGS%g
6737
 
s%@CPPFLAGS@%$CPPFLAGS%g
6738
 
s%@CXXFLAGS@%$CXXFLAGS%g
6739
 
s%@FFLAGS@%$FFLAGS%g
6740
 
s%@DEFS@%$DEFS%g
6741
 
s%@LDFLAGS@%$LDFLAGS%g
6742
 
s%@LIBS@%$LIBS%g
6743
 
s%@exec_prefix@%$exec_prefix%g
6744
 
s%@prefix@%$prefix%g
6745
 
s%@program_transform_name@%$program_transform_name%g
6746
 
s%@bindir@%$bindir%g
6747
 
s%@sbindir@%$sbindir%g
6748
 
s%@libexecdir@%$libexecdir%g
6749
 
s%@datadir@%$datadir%g
6750
 
s%@sysconfdir@%$sysconfdir%g
6751
 
s%@sharedstatedir@%$sharedstatedir%g
6752
 
s%@localstatedir@%$localstatedir%g
6753
 
s%@libdir@%$libdir%g
6754
 
s%@includedir@%$includedir%g
6755
 
s%@oldincludedir@%$oldincludedir%g
6756
 
s%@infodir@%$infodir%g
6757
 
s%@mandir@%$mandir%g
6758
 
s%@host@%$host%g
6759
 
s%@host_alias@%$host_alias%g
6760
 
s%@host_cpu@%$host_cpu%g
6761
 
s%@host_vendor@%$host_vendor%g
6762
 
s%@host_os@%$host_os%g
6763
 
s%@target@%$target%g
6764
 
s%@target_alias@%$target_alias%g
6765
 
s%@target_cpu@%$target_cpu%g
6766
 
s%@target_vendor@%$target_vendor%g
6767
 
s%@target_os@%$target_os%g
6768
 
s%@build@%$build%g
6769
 
s%@build_alias@%$build_alias%g
6770
 
s%@build_cpu@%$build_cpu%g
6771
 
s%@build_vendor@%$build_vendor%g
6772
 
s%@build_os@%$build_os%g
6773
 
s%@CC@%$CC%g
6774
 
s%@dist_prefix@%$dist_prefix%g
6775
 
s%@dist_bindir@%$dist_bindir%g
6776
 
s%@dist_includedir@%$dist_includedir%g
6777
 
s%@dist_libdir@%$dist_libdir%g
6778
 
s%@WHOAMI@%$WHOAMI%g
6779
 
s%@HOST_CC@%$HOST_CC%g
6780
 
s%@CXX@%$CXX%g
6781
 
s%@RANLIB@%$RANLIB%g
6782
 
s%@AR@%$AR%g
6783
 
s%@AS@%$AS%g
6784
 
s%@LD@%$LD%g
6785
 
s%@STRIP@%$STRIP%g
6786
 
s%@WINDRES@%$WINDRES%g
6787
 
s%@CPP@%$CPP%g
6788
 
s%@PERL@%$PERL%g
6789
 
s%@CCACHE@%$CCACHE%g
6790
 
s%@SHELL_OVERRIDE@%$SHELL_OVERRIDE%g
6791
 
s%@MOZILLA_CLIENT@%$MOZILLA_CLIENT%g
6792
 
s%@HOST_CFLAGS@%$HOST_CFLAGS%g
6793
 
s%@HOST_LDFLAGS@%$HOST_LDFLAGS%g
6794
 
s%@GNU_CC@%$GNU_CC%g
6795
 
s%@GCC_USE_GNU_LD@%$GCC_USE_GNU_LD%g
6796
 
s%@MSC_VER@%$MSC_VER%g
6797
 
s%@CROSS_COMPILE@%$CROSS_COMPILE%g
6798
 
s%@MOZ_OPTIMIZE@%$MOZ_OPTIMIZE%g
6799
 
s%@MOZ_DEBUG@%$MOZ_DEBUG%g
6800
 
s%@MOZ_DEBUG_SYMBOLS@%$MOZ_DEBUG_SYMBOLS%g
6801
 
s%@USE_CPLUS@%$USE_CPLUS%g
6802
 
s%@USE_IPV6@%$USE_IPV6%g
6803
 
s%@USE_N32@%$USE_N32%g
6804
 
s%@USE_64@%$USE_64%g
6805
 
s%@OBJECT_MODE@%$OBJECT_MODE%g
6806
 
s%@ENABLE_STRIP@%$ENABLE_STRIP%g
6807
 
s%@USE_PTHREADS@%$USE_PTHREADS%g
6808
 
s%@USE_BTHREADS@%$USE_BTHREADS%g
6809
 
s%@USE_USER_PTHREADS@%$USE_USER_PTHREADS%g
6810
 
s%@USE_NSPR_THREADS@%$USE_NSPR_THREADS%g
6811
 
s%@LIBNSPR@%$LIBNSPR%g
6812
 
s%@LIBPLC@%$LIBPLC%g
6813
 
s%@MOD_MAJOR_VERSION@%$MOD_MAJOR_VERSION%g
6814
 
s%@MOD_MINOR_VERSION@%$MOD_MINOR_VERSION%g
6815
 
s%@MOD_PATCH_VERSION@%$MOD_PATCH_VERSION%g
6816
 
s%@NSPR_MODNAME@%$NSPR_MODNAME%g
6817
 
s%@MDCPUCFG_H@%$MDCPUCFG_H%g
6818
 
s%@PR_MD_CSRCS@%$PR_MD_CSRCS%g
6819
 
s%@PR_MD_ASFILES@%$PR_MD_ASFILES%g
6820
 
s%@PR_MD_ARCH_DIR@%$PR_MD_ARCH_DIR%g
6821
 
s%@CPU_ARCH@%$CPU_ARCH%g
6822
 
s%@OBJ_SUFFIX@%$OBJ_SUFFIX%g
6823
 
s%@LIB_SUFFIX@%$LIB_SUFFIX%g
6824
 
s%@DLL_SUFFIX@%$DLL_SUFFIX%g
6825
 
s%@ASM_SUFFIX@%$ASM_SUFFIX%g
6826
 
s%@WRAP_MALLOC_CFLAGS@%$WRAP_MALLOC_CFLAGS%g
6827
 
s%@WRAP_MALLOC_LIB@%$WRAP_MALLOC_LIB%g
6828
 
s%@MKSHLIB@%$MKSHLIB%g
6829
 
s%@DSO_CFLAGS@%$DSO_CFLAGS%g
6830
 
s%@DSO_LDOPTS@%$DSO_LDOPTS%g
6831
 
s%@OS_TARGET@%$OS_TARGET%g
6832
 
s%@OS_ARCH@%$OS_ARCH%g
6833
 
s%@OS_RELEASE@%$OS_RELEASE%g
6834
 
s%@OS_TEST@%$OS_TEST%g
6835
 
s%@MACOSX_DEPLOYMENT_TARGET@%$MACOSX_DEPLOYMENT_TARGET%g
6836
 
s%@DEFINES@%$DEFINES%g
6837
 
s%@AR_FLAGS@%$AR_FLAGS%g
6838
 
s%@ASFLAGS@%$ASFLAGS%g
6839
 
s%@FILTER@%$FILTER%g
6840
 
s%@IMPLIB@%$IMPLIB%g
6841
 
s%@PROFILE_GEN_CFLAGS@%$PROFILE_GEN_CFLAGS%g
6842
 
s%@PROFILE_GEN_LDFLAGS@%$PROFILE_GEN_LDFLAGS%g
6843
 
s%@PROFILE_USE_CFLAGS@%$PROFILE_USE_CFLAGS%g
6844
 
s%@PROFILE_USE_LDFLAGS@%$PROFILE_USE_LDFLAGS%g
6845
 
s%@OS_LIBS@%$OS_LIBS%g
6846
 
s%@RESOLVE_LINK_SYMBOLS@%$RESOLVE_LINK_SYMBOLS%g
6847
 
s%@AIX_LINK_OPTS@%$AIX_LINK_OPTS%g
6848
 
s%@NOSUCHFILE@%$NOSUCHFILE%g
6849
 
s%@MOZ_OBJFORMAT@%$MOZ_OBJFORMAT%g
6850
 
s%@ULTRASPARC_LIBRARY@%$ULTRASPARC_LIBRARY%g
6851
 
s%@OBJDIR@%$OBJDIR%g
6852
 
s%@OBJDIR_NAME@%$OBJDIR_NAME%g
6853
 
s%@RELEASE_OBJDIR_NAME@%$RELEASE_OBJDIR_NAME%g
6854
 
s%@NSINSTALL@%$NSINSTALL%g
6855
 
s%@OPTIMIZER@%$OPTIMIZER%g
6856
 
s%@RC@%$RC%g
6857
 
s%@RCFLAGS@%$RCFLAGS%g
6858
 
s%@DLLFLAGS@%$DLLFLAGS%g
6859
 
s%@EXEFLAGS@%$EXEFLAGS%g
6860
 
s%@OS_DLLFLAGS@%$OS_DLLFLAGS%g
6861
 
s%@CYGWIN_WRAPPER@%$CYGWIN_WRAPPER%g
6862
 
s%@VISIBILITY_FLAGS@%$VISIBILITY_FLAGS%g
6863
 
s%@WRAP_SYSTEM_INCLUDES@%$WRAP_SYSTEM_INCLUDES%g
6864
 
s%@MACOS_SDK_DIR@%$MACOS_SDK_DIR%g
6865
 
s%@SYMBIAN_SDK_DIR@%$SYMBIAN_SDK_DIR%g
6866
 
s%@NEXT_ROOT@%$NEXT_ROOT%g
6867
 
s%@MT@%$MT%g
6868
 
 
6869
 
CEOF
6870
 
EOF
6871
 
 
6872
 
cat >> $CONFIG_STATUS <<\EOF
6873
 
 
6874
 
# Split the substitutions into bite-sized pieces for seds with
6875
 
# small command number limits, like on Digital OSF/1 and HP-UX.
6876
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6877
 
ac_file=1 # Number of current file.
6878
 
ac_beg=1 # First line for current file.
6879
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
6880
 
ac_more_lines=:
6881
 
ac_sed_cmds=""
6882
 
while $ac_more_lines; do
6883
 
  if test $ac_beg -gt 1; then
6884
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6885
 
  else
6886
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6887
 
  fi
6888
 
  if test ! -s conftest.s$ac_file; then
6889
 
    ac_more_lines=false
6890
 
    rm -f conftest.s$ac_file
6891
 
  else
6892
 
    if test -z "$ac_sed_cmds"; then
6893
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
6894
 
    else
6895
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6896
 
    fi
6897
 
    ac_file=`expr $ac_file + 1`
6898
 
    ac_beg=$ac_end
6899
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
6900
 
  fi
6901
 
done
6902
 
if test -z "$ac_sed_cmds"; then
6903
 
  ac_sed_cmds=cat
6904
 
fi
6905
 
EOF
6906
 
 
6907
 
cat >> $CONFIG_STATUS <<EOF
6908
 
 
6909
 
CONFIG_FILES=\${CONFIG_FILES-"$MAKEFILES"}
6910
 
EOF
6911
 
cat >> $CONFIG_STATUS <<\EOF
6912
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6913
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6914
 
  case "$ac_file" in
6915
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6916
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6917
 
  *) ac_file_in="${ac_file}.in" ;;
6918
 
  esac
6919
 
 
6920
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6921
 
 
6922
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
6923
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6924
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6925
 
    # The file is in a subdirectory.
6926
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
6927
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6928
 
    # A "../" for each directory in $ac_dir_suffix.
6929
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6930
 
  else
6931
 
    ac_dir_suffix= ac_dots=
6932
 
  fi
6933
 
 
6934
 
  case "$ac_given_srcdir" in
6935
 
  .)  srcdir=.
6936
 
      if test -z "$ac_dots"; then top_srcdir=.
6937
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6938
 
  /* | ?:/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6939
 
  *) # Relative path.
6940
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6941
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
6942
 
  esac
6943
 
 
6944
 
 
6945
 
  echo creating "$ac_file"
6946
 
  rm -f "$ac_file"
6947
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6948
 
  case "$ac_file" in
6949
 
  *Makefile*) ac_comsub="1i\\
6950
 
# $configure_input" ;;
6951
 
  *) ac_comsub= ;;
6952
 
  esac
6953
 
 
6954
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" `
6955
 
  sed -e "$ac_comsub
6956
 
s%@configure_input@%$configure_input%g
6957
 
s%@srcdir@%$srcdir%g
6958
 
s%@top_srcdir@%$top_srcdir%g
6959
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6960
 
fi; done
6961
 
rm -f conftest.s*
6962
 
 
6963
 
 
6964
 
 
6965
 
EOF
6966
 
cat >> $CONFIG_STATUS <<EOF
6967
 
 
6968
 
EOF
6969
 
cat >> $CONFIG_STATUS <<\EOF
6970
 
chmod +x config/nspr-config
6971
 
exit 0
6972
 
EOF
6973
 
chmod +x $CONFIG_STATUS
6974
 
rm -fr confdefs* $ac_clean_files
6975
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6976