1From 8100de51ff570389589537e2bb78e09cbb21a14a Mon Sep 17 00:00:00 2001 2From: Takuro Ashie <ashie@clear-code.com> 3Date: Mon, 20 Aug 2018 10:16:20 +0900 4Subject: [PATCH] firefox: Update to 60.0esr :tada: 5 6--- 7 js/src/old-configure | 8987 ++++++++++++++++++++++++++++++++++++++++++ 8 old-configure | 14 +- 9 2 files changed, 8995 insertions(+), 6 deletions(-) 10 create mode 100644 js/src/old-configure 11 12diff --git a/js/src/old-configure b/js/src/old-configure 13new file mode 100644 14index 0000000000..ff8d5bf12c 15--- /dev/null 16+++ b/js/src/old-configure 17@@ -0,0 +1,8987 @@ 18+#! /bin/sh 19+ 20+if test `uname -s | grep -c MINGW 2>/dev/null` != "0"; then 21+ msyshost=1 22+fi 23+ 24+. ./old-configure.vars 25+ 26+# Guess values for system-dependent variables and create Makefiles. 27+# Generated automatically using autoconf version 2.13 28+# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 29+# 30+# This configure script is free software; the Free Software Foundation 31+# gives unlimited permission to copy, distribute and modify it. 32+ 33+# Defaults: 34+ac_help= 35+ac_default_prefix=/usr/local 36+# Any additions from configure.in: 37+ac_help="$ac_help 38+ --with-ios-sdk=TYPE 39+ Type of iOS SDK to use (iphonesimulator, iphoneos) 40+ and optionally version (like iphoneos8.2)" 41+ac_help="$ac_help 42+ --enable-ios-target=VER (default=8.0) 43+ Set the minimum iOS version needed at runtime" 44+ac_help="$ac_help 45+ --with-x use the X Window System" 46+ac_help="$ac_help 47+ --enable-memory-sanitizer Enable Memory Sanitizer (default=no)" 48+ac_help="$ac_help 49+ --enable-thread-sanitizer Enable Thread Sanitizer (default=no)" 50+ac_help="$ac_help 51+ --enable-signed-overflow-sanitizer Enable UndefinedBehavior Sanitizer (Signed Integer Overflow Parts, default=no)" 52+ac_help="$ac_help 53+ --enable-unsigned-overflow-sanitizer Enable UndefinedBehavior Sanitizer (Unsigned Integer Overflow Parts, default=no)" 54+ac_help="$ac_help 55+ --with-debug-label=LABELS 56+ Define DEBUG_<value> for each comma-separated 57+ value given." 58+ac_help="$ac_help 59+ --enable-cpp-rtti Enable C++ RTTI " 60+ac_help="$ac_help 61+ --disable-icf Disable Identical Code Folding" 62+ac_help="$ac_help 63+ --enable-dtrace build with dtrace support if available (default=no)" 64+ac_help="$ac_help 65+ --with-nspr-cflags=FLAGS 66+ Pass FLAGS to CC when building code that uses NSPR. 67+ Use this when there's no accurate nspr-config 68+ script available. This is the case when building 69+ SpiderMonkey as part of the Mozilla tree: the 70+ top-level configure script computes NSPR flags 71+ that accomodate the quirks of that environment." 72+ac_help="$ac_help 73+ --with-nspr-libs=LIBS Pass LIBS to LD when linking code that uses NSPR. 74+ See --with-nspr-cflags for more details." 75+ac_help="$ac_help 76+ --enable-nspr-build Build NSPR from source tree" 77+ac_help="$ac_help 78+ --with-system-nspr Use an NSPR that is already built and installed. 79+ Use the 'nspr-config' script in the current path, 80+ or look for the script in the directories given with 81+ --with-nspr-exec-prefix or --with-nspr-prefix. 82+ (Those flags are only checked if you specify 83+ --with-system-nspr.)" 84+ac_help="$ac_help 85+ --enable-posix-nspr-emulation 86+ Enable emulation of NSPR for POSIX systems" 87+ac_help="$ac_help 88+ --with-nspr-prefix=PFX Prefix where NSPR is installed" 89+ac_help="$ac_help 90+ --with-nspr-exec-prefix=PFX 91+ Exec prefix where NSPR is installed" 92+ac_help="$ac_help 93+ --with-system-zlib[=PFX] 94+ Use system libz [installed at prefix PFX]" 95+ac_help="$ac_help 96+ --with-sixgill=path/to/sixgill 97+ Enable static checking of code using sixgill" 98+ac_help="$ac_help 99+ --enable-strip Enable stripping of libs & executables " 100+ac_help="$ac_help 101+ --enable-install-strip Enable stripping of libs & executables when packaging " 102+ac_help="$ac_help 103+ --jitreport-granularity=N 104+ Default granularity at which to report JIT code 105+ to external tools 106+ 0 - no info 107+ 1 - code ranges for whole functions only 108+ 2 - per-line information 109+ 3 - per-op information" 110+ac_help="$ac_help 111+ --enable-readline Link js shell to system readline library" 112+ac_help="$ac_help 113+ --with-qemu-exe=path Use path as an arm emulator on host platforms" 114+ac_help="$ac_help 115+ --with-cross-lib=dir Use dir as the location for arm libraries" 116+ac_help="$ac_help 117+ --with-system-icu 118+ Use system ICU (located with pkgconfig)" 119+ac_help="$ac_help 120+ --with-intl-api, --with-intl-api=build, --without-intl-api 121+ Determine the status of the ECMAScript Internationalization API. The first 122+ (or lack of any of these) builds and exposes the API. The second builds it 123+ but doesn't use ICU or expose the API to script. The third doesn't build 124+ ICU at all." 125+ 126+# Initialize some variables set by options. 127+# The variables have the same names as the options, with 128+# dashes changed to underlines. 129+build=NONE 130+cache_file=./config.cache 131+exec_prefix=NONE 132+host=NONE 133+no_create= 134+nonopt=NONE 135+no_recursion= 136+prefix=NONE 137+program_prefix=NONE 138+program_suffix=NONE 139+program_transform_name=s,x,x, 140+silent= 141+site= 142+srcdir= 143+target=NONE 144+verbose= 145+x_includes=NONE 146+x_libraries=NONE 147+bindir='${exec_prefix}/bin' 148+sbindir='${exec_prefix}/sbin' 149+libexecdir='${exec_prefix}/libexec' 150+datadir='${prefix}/share' 151+sysconfdir='${prefix}/etc' 152+sharedstatedir='${prefix}/com' 153+localstatedir='${prefix}/var' 154+libdir='${exec_prefix}/lib' 155+includedir='${prefix}/include' 156+oldincludedir='/usr/include' 157+infodir='${prefix}/info' 158+mandir='${prefix}/man' 159+ 160+# Initialize some other variables. 161+subdirs= 162+MFLAGS= MAKEFLAGS= 163+SHELL=${CONFIG_SHELL-/bin/sh} 164+# Maximum number of lines to put in a shell here document. 165+ac_max_here_lines=12 166+ 167+ac_prev= 168+for ac_option 169+do 170+ 171+ # If the previous option needs an argument, assign it. 172+ if test -n "$ac_prev"; then 173+ eval "$ac_prev=\$ac_option" 174+ ac_prev= 175+ continue 176+ fi 177+ 178+ case "$ac_option" in 179+ -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 180+ *) ac_optarg= ;; 181+ esac 182+ 183+ # Accept the important Cygnus configure options, so we can diagnose typos. 184+ 185+ case "$ac_option" in 186+ 187+ -bindir | --bindir | --bindi | --bind | --bin | --bi) 188+ ac_prev=bindir ;; 189+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 190+ bindir="$ac_optarg" ;; 191+ 192+ -build | --build | --buil | --bui | --bu) 193+ ac_prev=build ;; 194+ -build=* | --build=* | --buil=* | --bui=* | --bu=*) 195+ build="$ac_optarg" ;; 196+ 197+ -cache-file | --cache-file | --cache-fil | --cache-fi \ 198+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 199+ ac_prev=cache_file ;; 200+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 201+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 202+ cache_file="$ac_optarg" ;; 203+ 204+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 205+ ac_prev=datadir ;; 206+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 207+ | --da=*) 208+ datadir="$ac_optarg" ;; 209+ 210+ -disable-* | --disable-*) 211+ ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 212+ # Reject names that are not valid shell variable names. 213+ if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 214+ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; echo "configure: error: $ac_feature: invalid feature name" 1>&5; exit 1; } 215+ fi 216+ ac_feature=`echo $ac_feature| sed 's/-/_/g'` 217+ eval "enable_${ac_feature}=no" ;; 218+ 219+ -enable-* | --enable-*) 220+ ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 221+ # Reject names that are not valid shell variable names. 222+ if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 223+ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; echo "configure: error: $ac_feature: invalid feature name" 1>&5; exit 1; } 224+ fi 225+ ac_feature=`echo $ac_feature| sed 's/-/_/g'` 226+ case "$ac_option" in 227+ *=*) ;; 228+ *) ac_optarg=yes ;; 229+ esac 230+ eval "enable_${ac_feature}='$ac_optarg'" ;; 231+ 232+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 233+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 234+ | --exec | --exe | --ex) 235+ ac_prev=exec_prefix ;; 236+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 237+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 238+ | --exec=* | --exe=* | --ex=*) 239+ exec_prefix="$ac_optarg" ;; 240+ 241+ -gas | --gas | --ga | --g) 242+ # Obsolete; use --with-gas. 243+ with_gas=yes ;; 244+ 245+ -help | --help | --hel | --he) 246+ # Omit some internal or obsolete options to make the list less imposing. 247+ # This message is too long to be a string in the A/UX 3.1 sh. 248+ cat << EOF 249+Usage: configure [options] [host] 250+Options: [defaults in brackets after descriptions] 251+Configuration: 252+ --cache-file=FILE cache test results in FILE 253+ --help print this message 254+ --no-create do not create output files 255+ --quiet, --silent do not print \`checking...' messages 256+ --version print the version of autoconf that created configure 257+Directory and file names: 258+ --prefix=PREFIX install architecture-independent files in PREFIX 259+ [$ac_default_prefix] 260+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 261+ [same as prefix] 262+ --bindir=DIR user executables in DIR [EPREFIX/bin] 263+ --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 264+ --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 265+ --datadir=DIR read-only architecture-independent data in DIR 266+ [PREFIX/share] 267+ --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 268+ --sharedstatedir=DIR modifiable architecture-independent data in DIR 269+ [PREFIX/com] 270+ --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 271+ --libdir=DIR object code libraries in DIR [EPREFIX/lib] 272+ --includedir=DIR C header files in DIR [PREFIX/include] 273+ --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 274+ --infodir=DIR info documentation in DIR [PREFIX/info] 275+ --mandir=DIR man documentation in DIR [PREFIX/man] 276+ --srcdir=DIR find the sources in DIR [configure dir or ..] 277+ --program-prefix=PREFIX prepend PREFIX to installed program names 278+ --program-suffix=SUFFIX append SUFFIX to installed program names 279+ --program-transform-name=PROGRAM 280+ run sed PROGRAM on installed program names 281+EOF 282+ cat << EOF 283+Host type: 284+ --build=BUILD configure for building on BUILD [BUILD=HOST] 285+ --host=HOST configure for HOST [guessed] 286+ --target=TARGET configure for TARGET [TARGET=HOST] 287+Features and packages: 288+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 289+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 290+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 291+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 292+ --x-includes=DIR X include files are in DIR 293+ --x-libraries=DIR X library files are in DIR 294+EOF 295+ if test -n "$ac_help"; then 296+ echo "--enable and --with options recognized:$ac_help" 297+ fi 298+ exit 0 ;; 299+ 300+ -host | --host | --hos | --ho) 301+ ac_prev=host ;; 302+ -host=* | --host=* | --hos=* | --ho=*) 303+ host="$ac_optarg" ;; 304+ 305+ -includedir | --includedir | --includedi | --included | --include \ 306+ | --includ | --inclu | --incl | --inc) 307+ ac_prev=includedir ;; 308+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 309+ | --includ=* | --inclu=* | --incl=* | --inc=*) 310+ includedir="$ac_optarg" ;; 311+ 312+ -infodir | --infodir | --infodi | --infod | --info | --inf) 313+ ac_prev=infodir ;; 314+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 315+ infodir="$ac_optarg" ;; 316+ 317+ -libdir | --libdir | --libdi | --libd) 318+ ac_prev=libdir ;; 319+ -libdir=* | --libdir=* | --libdi=* | --libd=*) 320+ libdir="$ac_optarg" ;; 321+ 322+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 323+ | --libexe | --libex | --libe) 324+ ac_prev=libexecdir ;; 325+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 326+ | --libexe=* | --libex=* | --libe=*) 327+ libexecdir="$ac_optarg" ;; 328+ 329+ -localstatedir | --localstatedir | --localstatedi | --localstated \ 330+ | --localstate | --localstat | --localsta | --localst \ 331+ | --locals | --local | --loca | --loc | --lo) 332+ ac_prev=localstatedir ;; 333+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 334+ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 335+ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 336+ localstatedir="$ac_optarg" ;; 337+ 338+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 339+ ac_prev=mandir ;; 340+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 341+ mandir="$ac_optarg" ;; 342+ 343+ -nfp | --nfp | --nf) 344+ # Obsolete; use --without-fp. 345+ with_fp=no ;; 346+ 347+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 348+ | --no-cr | --no-c) 349+ no_create=yes ;; 350+ 351+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 352+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 353+ no_recursion=yes ;; 354+ 355+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 356+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 357+ | --oldin | --oldi | --old | --ol | --o) 358+ ac_prev=oldincludedir ;; 359+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 360+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 361+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 362+ oldincludedir="$ac_optarg" ;; 363+ 364+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 365+ ac_prev=prefix ;; 366+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 367+ prefix="$ac_optarg" ;; 368+ 369+ -program-prefix | --program-prefix | --program-prefi | --program-pref \ 370+ | --program-pre | --program-pr | --program-p) 371+ ac_prev=program_prefix ;; 372+ -program-prefix=* | --program-prefix=* | --program-prefi=* \ 373+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 374+ program_prefix="$ac_optarg" ;; 375+ 376+ -program-suffix | --program-suffix | --program-suffi | --program-suff \ 377+ | --program-suf | --program-su | --program-s) 378+ ac_prev=program_suffix ;; 379+ -program-suffix=* | --program-suffix=* | --program-suffi=* \ 380+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 381+ program_suffix="$ac_optarg" ;; 382+ 383+ -program-transform-name | --program-transform-name \ 384+ | --program-transform-nam | --program-transform-na \ 385+ | --program-transform-n | --program-transform- \ 386+ | --program-transform | --program-transfor \ 387+ | --program-transfo | --program-transf \ 388+ | --program-trans | --program-tran \ 389+ | --progr-tra | --program-tr | --program-t) 390+ ac_prev=program_transform_name ;; 391+ -program-transform-name=* | --program-transform-name=* \ 392+ | --program-transform-nam=* | --program-transform-na=* \ 393+ | --program-transform-n=* | --program-transform-=* \ 394+ | --program-transform=* | --program-transfor=* \ 395+ | --program-transfo=* | --program-transf=* \ 396+ | --program-trans=* | --program-tran=* \ 397+ | --progr-tra=* | --program-tr=* | --program-t=*) 398+ program_transform_name="$ac_optarg" ;; 399+ 400+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 401+ | -silent | --silent | --silen | --sile | --sil) 402+ silent=yes ;; 403+ 404+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 405+ ac_prev=sbindir ;; 406+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 407+ | --sbi=* | --sb=*) 408+ sbindir="$ac_optarg" ;; 409+ 410+ -sharedstatedir | --sharedstatedir | --sharedstatedi \ 411+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 412+ | --sharedst | --shareds | --shared | --share | --shar \ 413+ | --sha | --sh) 414+ ac_prev=sharedstatedir ;; 415+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 416+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 417+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 418+ | --sha=* | --sh=*) 419+ sharedstatedir="$ac_optarg" ;; 420+ 421+ -site | --site | --sit) 422+ ac_prev=site ;; 423+ -site=* | --site=* | --sit=*) 424+ site="$ac_optarg" ;; 425+ 426+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 427+ ac_prev=srcdir ;; 428+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 429+ srcdir="$ac_optarg" ;; 430+ 431+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 432+ | --syscon | --sysco | --sysc | --sys | --sy) 433+ ac_prev=sysconfdir ;; 434+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 435+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 436+ sysconfdir="$ac_optarg" ;; 437+ 438+ -target | --target | --targe | --targ | --tar | --ta | --t) 439+ ac_prev=target ;; 440+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 441+ target="$ac_optarg" ;; 442+ 443+ -v | -verbose | --verbose | --verbos | --verbo | --verb) 444+ verbose=yes ;; 445+ 446+ -version | --version | --versio | --versi | --vers) 447+ echo "configure generated by autoconf version 2.13" 448+ exit 0 ;; 449+ 450+ -with-* | --with-*) 451+ ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 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; echo "configure: error: $ac_package: invalid package name" 1>&5; exit 1; } 455+ fi 456+ ac_package=`echo $ac_package| sed 's/-/_/g'` 457+ case "$ac_option" in 458+ *=*) ;; 459+ *) ac_optarg=yes ;; 460+ esac 461+ eval "with_${ac_package}='$ac_optarg'" ;; 462+ 463+ -without-* | --without-*) 464+ ac_package=`echo $ac_option|sed -e 's/-*without-//'` 465+ # Reject names that are not valid shell variable names. 466+ if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 467+ { echo "configure: error: $ac_package: invalid package name" 1>&2; echo "configure: error: $ac_package: invalid package name" 1>&5; exit 1; } 468+ fi 469+ ac_package=`echo $ac_package| sed 's/-/_/g'` 470+ eval "with_${ac_package}=no" ;; 471+ 472+ --x) 473+ # Obsolete; use --with-x. 474+ with_x=yes ;; 475+ 476+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 477+ | --x-incl | --x-inc | --x-in | --x-i) 478+ ac_prev=x_includes ;; 479+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 480+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 481+ x_includes="$ac_optarg" ;; 482+ 483+ -x-libraries | --x-libraries | --x-librarie | --x-librari \ 484+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 485+ ac_prev=x_libraries ;; 486+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 487+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 488+ x_libraries="$ac_optarg" ;; 489+ 490+ -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&5; exit 1; } 491+ ;; 492+ 493+ *) 494+ if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 495+ echo "configure: warning: $ac_option: invalid host type" 1>&2 496+ fi 497+ if test "x$nonopt" != xNONE; then 498+ { echo "configure: error: can only configure for one host and one target at a time" 1>&2; echo "configure: error: can only configure for one host and one target at a time" 1>&5; exit 1; } 499+ fi 500+ nonopt="$ac_option" 501+ ;; 502+ 503+ esac 504+done 505+ 506+if test -n "$ac_prev"; then 507+ { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&5; exit 1; } 508+fi 509+ 510+if test -z "$srcdir"; then 511+ srcdir=`dirname "$0"` 512+fi 513+srcdir="$srcdir/../.." 514+trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 515+ 516+# File descriptor usage: 517+# 0 standard input 518+# 1 file creation 519+# 2 errors and warnings 520+# 3 some systems may open it to /dev/tty 521+# 4 used on the Kubota Titan 522+# 6 checking for... messages and results 523+# 5 compiler messages saved in config.log 524+if test "$silent" = yes; then 525+ exec 6>/dev/null 526+else 527+ exec 6>&1 528+fi 529+exec 5>>${CONFIG_LOG=./config.log} 530+ 531+echo "\ 532+This file contains any messages produced by compilers while 533+running configure, to aid debugging if configure makes a mistake. 534+" 1>&5 535+ 536+# Strip out --no-create and --no-recursion so they do not pile up. 537+# Also quote any args containing shell metacharacters. 538+ac_configure_args= 539+for ac_arg 540+do 541+ case "$ac_arg" in 542+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 543+ | --no-cr | --no-c) ;; 544+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 545+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 546+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 547+ ac_configure_args="$ac_configure_args '$ac_arg'" ;; 548+ *) ac_configure_args="$ac_configure_args $ac_arg" ;; 549+ esac 550+done 551+ 552+# NLS nuisances. 553+# Only set these to C if already set. These must not be set unconditionally 554+# because not all systems understand e.g. LANG=C (notably SCO). 555+# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 556+# Non-C LC_CTYPE values break the ctype check. 557+if test "${LANG+set}" = set; then LANG=C; export LANG; fi 558+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 559+if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 560+if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 561+ 562+# confdefs.h avoids OS command line length limits that DEFS can exceed. 563+rm -rf conftest* confdefs.h 564+# AIX cpp loses on an empty file, so make sure it contains at least a newline. 565+echo > confdefs.h 566+ 567+# A filename unique to this package, relative to the directory that 568+# configure is in, which we can look for to find out if srcdir is correct. 569+ac_unique_file=js/src/jsapi.h 570+ 571+# Find the source files, if location was not specified. 572+if test -z "$srcdir"; then 573+ ac_srcdir_defaulted=yes 574+ # Try the directory containing this script, then its parent. 575+ ac_prog=$0 576+ ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 577+ test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 578+ srcdir=$ac_confdir 579+ if test ! -r $srcdir/$ac_unique_file; then 580+ srcdir=.. 581+ fi 582+else 583+ ac_srcdir_defaulted=no 584+fi 585+if test ! -r $srcdir/$ac_unique_file; then 586+ if test "$ac_srcdir_defaulted" = yes; then 587+ { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; echo "configure: error: can not find sources in $ac_confdir or .." 1>&5; exit 1; } 588+ else 589+ { echo "configure: error: can not find sources in $srcdir" 1>&2; echo "configure: error: can not find sources in $srcdir" 1>&5; exit 1; } 590+ fi 591+fi 592+srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 593+ 594+# Prefer explicitly selected file to automatically selected ones. 595+if test -z "$CONFIG_SITE"; then 596+ if test "x$prefix" != xNONE; then 597+ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 598+ else 599+ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 600+ fi 601+fi 602+for ac_site_file in $CONFIG_SITE; do 603+ if test -r "$ac_site_file"; then 604+ echo "loading site script $ac_site_file" 605+ . "$ac_site_file" 606+ fi 607+done 608+ 609+if test -r "$cache_file"; then 610+ echo "loading cache $cache_file" 611+ . $cache_file 612+else 613+ echo "creating cache $cache_file" 614+ > $cache_file 615+fi 616+ 617+ac_ext=c 618+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 619+ac_cpp='$CPP $CPPFLAGS' 620+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 621+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 622+cross_compiling=$ac_cv_prog_cc_cross 623+ 624+if test "$CC_TYPE" = "clang-cl"; then 625+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 626+fi 627+ 628+ac_exeext= 629+ac_objext=o 630+if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 631+ # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 632+ if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 633+ ac_n= ac_c=' 634+' ac_t=' ' 635+ else 636+ ac_n=-n ac_c= ac_t= 637+ fi 638+else 639+ ac_n= ac_c='\c' ac_t= 640+fi 641+ 642+ 643+ 644+test "x$prefix" = xNONE && prefix=$ac_default_prefix 645+# Let make expand exec_prefix. 646+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 647+ 648+ 649+ac_aux_dir= 650+for ac_dir in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf; do 651+ if test -f $ac_dir/install-sh; then 652+ ac_aux_dir=$ac_dir 653+ ac_install_sh="$ac_aux_dir/install-sh -c" 654+ break 655+ elif test -f $ac_dir/install.sh; then 656+ ac_aux_dir=$ac_dir 657+ ac_install_sh="$ac_aux_dir/install.sh -c" 658+ break 659+ fi 660+done 661+if test -z "$ac_aux_dir"; then 662+ { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&2; echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&5; exit 1; } 663+fi 664+ac_config_guess=$ac_aux_dir/config.guess 665+ac_config_sub=$ac_aux_dir/config.sub 666+ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 667+ 668+ 669+# Do some error checking and defaulting for the host and target type. 670+# The inputs are: 671+# configure --host=HOST --target=TARGET --build=BUILD NONOPT 672+# 673+# The rules are: 674+# 1. You are not allowed to specify --host, --target, and nonopt at the 675+# same time. 676+# 2. Host defaults to nonopt. 677+# 3. If nonopt is not specified, then host defaults to the current host, 678+# as determined by config.guess. 679+# 4. Target and build default to nonopt. 680+# 5. If nonopt is not specified, then target and build default to host. 681+ 682+# The aliases save the names the user supplied, while $host etc. 683+# will get canonicalized. 684+case $host---$target---$nonopt in 685+NONE---*---* | *---NONE---* | *---*---NONE) ;; 686+*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; echo "configure: error: can only configure for one host and one target at a time" 1>&5; exit 1; } ;; 687+esac 688+ 689+ 690+# Make sure we can run config.sub. 691+if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 692+else { echo "configure: error: can not run $ac_config_sub" 1>&2; echo "configure: error: can not run $ac_config_sub" 1>&5; exit 1; } 693+fi 694+ 695+echo $ac_n "checking host system type""... $ac_c" 1>&6 696+echo "configure:680: checking host system type" >&5 697+ 698+host_alias=$host 699+case "$host_alias" in 700+NONE) 701+ case $nonopt in 702+ NONE) 703+ if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 704+ else { echo "configure: error: can not guess host type; you must specify one" 1>&2; echo "configure: error: can not guess host type; you must specify one" 1>&5; exit 1; } 705+ fi ;; 706+ *) host_alias=$nonopt ;; 707+ esac ;; 708+esac 709+ 710+host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 711+host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 712+host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 713+host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 714+echo "$ac_t""$host" 1>&6 715+ 716+echo $ac_n "checking target system type""... $ac_c" 1>&6 717+echo "configure:701: checking target system type" >&5 718+ 719+target_alias=$target 720+case "$target_alias" in 721+NONE) 722+ case $nonopt in 723+ NONE) target_alias=$host_alias ;; 724+ *) target_alias=$nonopt ;; 725+ esac ;; 726+esac 727+ 728+target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 729+target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 730+target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 731+target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 732+echo "$ac_t""$target" 1>&6 733+ 734+echo $ac_n "checking build system type""... $ac_c" 1>&6 735+echo "configure:719: checking build system type" >&5 736+ 737+build_alias=$build 738+case "$build_alias" in 739+NONE) 740+ case $nonopt in 741+ NONE) build_alias=$host_alias ;; 742+ *) build_alias=$nonopt ;; 743+ esac ;; 744+esac 745+ 746+build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 747+build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 748+build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 749+build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 750+echo "$ac_t""$build" 1>&6 751+ 752+test "$host_alias" != "$target_alias" && 753+ test "$program_prefix$program_suffix$program_transform_name" = \ 754+ NONENONEs,x,x, && 755+ program_prefix=${target_alias}- 756+ 757+ 758+CFLAGS="${CFLAGS=}" 759+CPPFLAGS="${CPPFLAGS=}" 760+CXXFLAGS="${CXXFLAGS=}" 761+LDFLAGS="${LDFLAGS=}" 762+HOST_CFLAGS="${HOST_CFLAGS=}" 763+HOST_CXXFLAGS="${HOST_CXXFLAGS=}" 764+HOST_LDFLAGS="${HOST_LDFLAGS=}" 765+ 766+_SUBDIR_CC="$CC" 767+_SUBDIR_CXX="$CXX" 768+_SUBDIR_CFLAGS="$CFLAGS" 769+_SUBDIR_CPPFLAGS="$CPPFLAGS" 770+_SUBDIR_CXXFLAGS="$CXXFLAGS" 771+_SUBDIR_LDFLAGS="$LDFLAGS" 772+_SUBDIR_HOST_CC="$HOST_CC" 773+_SUBDIR_HOST_CFLAGS="$HOST_CFLAGS" 774+_SUBDIR_HOST_CXXFLAGS="$HOST_CXXFLAGS" 775+_SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS" 776+_SUBDIR_CONFIG_ARGS="$ac_configure_args" 777+ 778+NSPR_VERSION=4 779+NSPR_MINVER=4.9.2 780+ 781+W32API_VERSION=3.14 782+ 783+MISSING_X= 784+ 785+USE_PTHREADS= 786+_PTHREAD_LDFLAGS="" 787+ 788+LDFLAGS="$LDFLAGS $LINKER_LDFLAGS" 789+ 790+if test -z "$JS_STANDALONE"; then 791+ autoconfmk=autoconf-js.mk 792+fi 793+ 794+ 795+if test -n "$JS_STANDALONE"; then 796+ jsconfdefs=$_objdir/js/src/js-confdefs.h 797+else 798+ jsconfdefs=$_objdir/js-confdefs.h 799+fi 800+ 801+ 802+ 803+case "$target" in 804+*-android*|*-linuxandroid*) 805+ directory_include_args="-isystem $android_system -isystem $android_sysroot/usr/include" 806+ 807+ # clang will do any number of interesting things with host tools unless we tell 808+ # it to use the NDK tools. 809+ extra_opts="-gcc-toolchain $(dirname $(dirname $TOOLCHAIN_PREFIX))" 810+ CPPFLAGS="$extra_opts -D__ANDROID_API__=$android_version $CPPFLAGS" 811+ ASFLAGS="$extra_opts $ASFLAGS" 812+ LDFLAGS="$extra_opts $LDFLAGS" 813+ 814+ CPPFLAGS="$directory_include_args $CPPFLAGS" 815+ CFLAGS="-fno-short-enums -fno-exceptions $CFLAGS" 816+ CXXFLAGS="-fno-short-enums -fno-exceptions $CXXFLAGS $stlport_cppflags" 817+ ASFLAGS="$directory_include_args -DANDROID $ASFLAGS" 818+ 819+ LDFLAGS="-L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform $LDFLAGS" 820+ ANDROID_PLATFORM="${android_platform}" 821+ 822+ cat >> confdefs.pytmp <<\EOF 823+ (''' ANDROID ''', ' 1 ') 824+EOF 825+cat >> confdefs.h <<\EOF 826+#define ANDROID 1 827+EOF 828+ 829+ 830+ 831+ ;; 832+esac 833+ 834+ 835+ 836+case "$target" in 837+*-apple-darwin*) 838+ 839+ 840+# Check whether --with-ios-sdk or --without-ios-sdk was given. 841+if test "${with_ios_sdk+set}" = set; then 842+ withval="$with_ios_sdk" 843+ ios_sdk=$withval 844+fi 845+ 846+ 847+# Check whether --enable-ios-target or --disable-ios-target was given. 848+if test "${enable_ios_target+set}" = set; then 849+ enableval="$enable_ios_target" 850+ _IOS_TARGET=$enableval 851+fi 852+ 853+_IOS_TARGET_DEFAULT=8.0 854+ 855+case "$target" in 856+arm*-apple-darwin*) 857+ if test -z "$ios_sdk" -o "$ios_sdk" = "yes"; then 858+ ios_sdk=iphoneos 859+ fi 860+ case "$ios_sdk" in 861+ iphoneos*) 862+ ios_target_arg="-miphoneos-version-min" 863+ ;; 864+ *) 865+ { echo "configure: error: Only 'iphoneos' SDKs are valid when targeting iOS device, don't know what to do with '$ios_sdk'." 1>&2; echo "configure: error: Only 'iphoneos' SDKs are valid when targeting iOS device, don't know what to do with '$ios_sdk'." 1>&5; exit 1; } 866+ ;; 867+ esac 868+ ;; 869+*-apple-darwin*) 870+ ios_target_arg="-mios-simulator-version-min" 871+ case "$ios_sdk" in 872+ # Empty SDK is okay, this might be an OS X desktop build. 873+ ""|iphonesimulator*) 874+ ;; 875+ # Default to iphonesimulator 876+ yes) 877+ ios_sdk=iphonesimulator 878+ ;; 879+ *) 880+ { echo "configure: error: Only 'iphonesimulator' SDKs are valid when targeting iOS simulator." 1>&2; echo "configure: error: Only 'iphonesimulator' SDKs are valid when targeting iOS simulator." 1>&5; exit 1; } 881+ ;; 882+ esac 883+ ;; 884+esac 885+ 886+ 887+if test -n "$ios_sdk"; then 888+ if test -z "$_IOS_TARGET"; then 889+ _IOS_TARGET=$_IOS_TARGET_DEFAULT 890+ ios_target_arg="${ios_target_arg}=${_IOS_TARGET}" 891+ fi 892+ # Ensure that xcrun knows where this SDK is. 893+ ios_sdk_path=`xcrun --sdk $ios_sdk --show-sdk-path 2>/dev/null` 894+ _ret=$? 895+ if test $_ret -ne 0; then 896+ { echo "configure: error: iOS SDK '$ios_sdk' could not be found." 1>&2; echo "configure: error: iOS SDK '$ios_sdk' could not be found." 1>&5; exit 1; } 897+ fi 898+ MOZ_IOS=1 899+ export HOST_CC=clang 900+ export HOST_CXX=clang++ 901+ # Add isysroot, arch, and ios target arguments 902+ case "$target_cpu" in 903+ arm*) 904+ ARGS="-arch armv7" 905+ ;; 906+ *) 907+ # Unfortunately simulator builds need this. 908+ export CROSS_COMPILE=1 909+ ;; 910+ esac 911+ ARGS=" $ARGS -isysroot $ios_sdk_path $ios_target_arg" 912+ # Now find our tools 913+ 914+ 915+_prog_name=clang 916+ 917+echo $ac_n "checking for $_prog_name in iOS SDK""... $ac_c" 1>&6 918+echo "configure:902: checking for $_prog_name in iOS SDK" >&5 919+if eval "test \"`echo '$''{'ac_cv_ios_path_CC'+set}'`\" = set"; then 920+ echo $ac_n "(cached) $ac_c" 1>&6 921+else 922+ 923+_path=`xcrun --sdk $ios_sdk --find $_prog_name 2>/dev/null` 924+_res=$? 925+if test $_res -ne 0; then 926+ { echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&2; echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&5; exit 1; } 927+fi 928+ac_cv_ios_path_CC=$_path 929+ 930+fi 931+ 932+echo "$ac_t""$ac_cv_ios_path_CC" 1>&6 933+CC="${ac_cv_ios_path_CC}$ARGS" 934+ 935+ 936+ 937+_prog_name=clang++ 938+ 939+echo $ac_n "checking for $_prog_name in iOS SDK""... $ac_c" 1>&6 940+echo "configure:924: checking for $_prog_name in iOS SDK" >&5 941+if eval "test \"`echo '$''{'ac_cv_ios_path_CXX'+set}'`\" = set"; then 942+ echo $ac_n "(cached) $ac_c" 1>&6 943+else 944+ 945+_path=`xcrun --sdk $ios_sdk --find $_prog_name 2>/dev/null` 946+_res=$? 947+if test $_res -ne 0; then 948+ { echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&2; echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&5; exit 1; } 949+fi 950+ac_cv_ios_path_CXX=$_path 951+ 952+fi 953+ 954+echo "$ac_t""$ac_cv_ios_path_CXX" 1>&6 955+CXX="${ac_cv_ios_path_CXX}$ARGS" 956+ 957+ export CPP="$CC -E" 958+ 959+ 960+_prog_name=`echo AR | tr "[:upper:]" "[:lower:]"` 961+ 962+echo $ac_n "checking for $_prog_name in iOS SDK""... $ac_c" 1>&6 963+echo "configure:947: checking for $_prog_name in iOS SDK" >&5 964+if eval "test \"`echo '$''{'ac_cv_ios_path_AR'+set}'`\" = set"; then 965+ echo $ac_n "(cached) $ac_c" 1>&6 966+else 967+ 968+_path=`xcrun --sdk $ios_sdk --find $_prog_name 2>/dev/null` 969+_res=$? 970+if test $_res -ne 0; then 971+ { echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&2; echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&5; exit 1; } 972+fi 973+ac_cv_ios_path_AR=$_path 974+ 975+fi 976+ 977+echo "$ac_t""$ac_cv_ios_path_AR" 1>&6 978+AR="${ac_cv_ios_path_AR}" 979+ 980+ 981+ 982+_prog_name=as 983+ 984+echo $ac_n "checking for $_prog_name in iOS SDK""... $ac_c" 1>&6 985+echo "configure:969: checking for $_prog_name in iOS SDK" >&5 986+if eval "test \"`echo '$''{'ac_cv_ios_path_AS'+set}'`\" = set"; then 987+ echo $ac_n "(cached) $ac_c" 1>&6 988+else 989+ 990+_path=`xcrun --sdk $ios_sdk --find $_prog_name 2>/dev/null` 991+_res=$? 992+if test $_res -ne 0; then 993+ { echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&2; echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&5; exit 1; } 994+fi 995+ac_cv_ios_path_AS=$_path 996+ 997+fi 998+ 999+echo "$ac_t""$ac_cv_ios_path_AS" 1>&6 1000+AS="${ac_cv_ios_path_AS}$ARGS" 1001+ 1002+ 1003+ 1004+_prog_name=`echo OTOOL | tr "[:upper:]" "[:lower:]"` 1005+ 1006+echo $ac_n "checking for $_prog_name in iOS SDK""... $ac_c" 1>&6 1007+echo "configure:991: checking for $_prog_name in iOS SDK" >&5 1008+if eval "test \"`echo '$''{'ac_cv_ios_path_OTOOL'+set}'`\" = set"; then 1009+ echo $ac_n "(cached) $ac_c" 1>&6 1010+else 1011+ 1012+_path=`xcrun --sdk $ios_sdk --find $_prog_name 2>/dev/null` 1013+_res=$? 1014+if test $_res -ne 0; then 1015+ { echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&2; echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&5; exit 1; } 1016+fi 1017+ac_cv_ios_path_OTOOL=$_path 1018+ 1019+fi 1020+ 1021+echo "$ac_t""$ac_cv_ios_path_OTOOL" 1>&6 1022+OTOOL="${ac_cv_ios_path_OTOOL}" 1023+ 1024+ 1025+ 1026+_prog_name=`echo STRIP | tr "[:upper:]" "[:lower:]"` 1027+ 1028+echo $ac_n "checking for $_prog_name in iOS SDK""... $ac_c" 1>&6 1029+echo "configure:1013: checking for $_prog_name in iOS SDK" >&5 1030+if eval "test \"`echo '$''{'ac_cv_ios_path_STRIP'+set}'`\" = set"; then 1031+ echo $ac_n "(cached) $ac_c" 1>&6 1032+else 1033+ 1034+_path=`xcrun --sdk $ios_sdk --find $_prog_name 2>/dev/null` 1035+_res=$? 1036+if test $_res -ne 0; then 1037+ { echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&2; echo "configure: error: Could not find '$_prog_name' in the iOS SDK" 1>&5; exit 1; } 1038+fi 1039+ac_cv_ios_path_STRIP=$_path 1040+ 1041+fi 1042+ 1043+echo "$ac_t""$ac_cv_ios_path_STRIP" 1>&6 1044+STRIP="${ac_cv_ios_path_STRIP}" 1045+ 1046+ export PKG_CONFIG_PATH=${ios_sdk_path}/usr/lib/pkgconfig/ 1047+fi 1048+ 1049+ 1050+ 1051+ ;; 1052+esac 1053+ 1054+ 1055+if test "$COMPILE_ENVIRONMENT"; then 1056+ 1057+# Note: 1058+# In Mozilla, we use the names $target, $host and $build incorrectly, but are 1059+# too far gone to back out now. See Bug 475488: 1060+# - When we say $target, we mean $host, that is, the system on which 1061+# Mozilla will be run. 1062+# - When we say $host, we mean $build, that is, the system on which Mozilla 1063+# is built. 1064+# - $target (in its correct usage) is for compilers who generate code for a 1065+# different platform than $host, so it would not be used by Mozilla. 1066+if test "$target" != "$host"; then 1067+ 1068+echo "cross compiling from $host to $target" 1069+ 1070+_SAVE_PATH=$PATH 1071+case "${TOOLCHAIN_PREFIX}" in 1072+/*) 1073+ PATH="/:$PATH" 1074+ ;; 1075+esac 1076+# Extract the first word of "gcc", so it can be a program name with args. 1077+set dummy gcc; ac_word=$2 1078+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1079+echo "configure:1063: checking for $ac_word" >&5 1080+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1081+ echo $ac_n "(cached) $ac_c" 1>&6 1082+else 1083+ if test -n "$CC"; then 1084+ ac_cv_prog_CC="$CC" # Let the user override the test. 1085+else 1086+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1087+ ac_dummy="$PATH" 1088+ for ac_dir in $ac_dummy; do 1089+ test -z "$ac_dir" && ac_dir=. 1090+ if test -f $ac_dir/$ac_word; then 1091+ ac_cv_prog_CC="gcc" 1092+ break 1093+ fi 1094+ done 1095+ IFS="$ac_save_ifs" 1096+fi 1097+fi 1098+CC="$ac_cv_prog_CC" 1099+if test -n "$CC"; then 1100+ echo "$ac_t""$CC" 1>&6 1101+else 1102+ echo "$ac_t""no" 1>&6 1103+fi 1104+ 1105+if test -z "$CC"; then 1106+ # Extract the first word of "cc", so it can be a program name with args. 1107+set dummy cc; ac_word=$2 1108+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1109+echo "configure:1093: checking for $ac_word" >&5 1110+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1111+ echo $ac_n "(cached) $ac_c" 1>&6 1112+else 1113+ if test -n "$CC"; then 1114+ ac_cv_prog_CC="$CC" # Let the user override the test. 1115+else 1116+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1117+ ac_prog_rejected=no 1118+ ac_dummy="$PATH" 1119+ for ac_dir in $ac_dummy; do 1120+ test -z "$ac_dir" && ac_dir=. 1121+ if test -f $ac_dir/$ac_word; then 1122+ if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1123+ ac_prog_rejected=yes 1124+ continue 1125+ fi 1126+ ac_cv_prog_CC="cc" 1127+ break 1128+ fi 1129+ done 1130+ IFS="$ac_save_ifs" 1131+if test $ac_prog_rejected = yes; then 1132+ # We found a bogon in the path, so make sure we never use it. 1133+ set dummy $ac_cv_prog_CC 1134+ shift 1135+ if test $# -gt 0; then 1136+ # We chose a different compiler from the bogus one. 1137+ # However, it has the same basename, so the bogon will be chosen 1138+ # first if we set CC to just the basename; use the full file name. 1139+ shift 1140+ set dummy "$ac_dir/$ac_word" "$@" 1141+ shift 1142+ ac_cv_prog_CC="$@" 1143+ fi 1144+fi 1145+fi 1146+fi 1147+CC="$ac_cv_prog_CC" 1148+if test -n "$CC"; then 1149+ echo "$ac_t""$CC" 1>&6 1150+else 1151+ echo "$ac_t""no" 1>&6 1152+fi 1153+ 1154+ if test -z "$CC"; then 1155+ case "`uname -s`" in 1156+ *win32* | *WIN32*) 1157+ # Extract the first word of "cl", so it can be a program name with args. 1158+set dummy cl; ac_word=$2 1159+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1160+echo "configure:1144: checking for $ac_word" >&5 1161+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1162+ echo $ac_n "(cached) $ac_c" 1>&6 1163+else 1164+ if test -n "$CC"; then 1165+ ac_cv_prog_CC="$CC" # Let the user override the test. 1166+else 1167+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1168+ ac_dummy="$PATH" 1169+ for ac_dir in $ac_dummy; do 1170+ test -z "$ac_dir" && ac_dir=. 1171+ if test -f $ac_dir/$ac_word; then 1172+ ac_cv_prog_CC="cl" 1173+ break 1174+ fi 1175+ done 1176+ IFS="$ac_save_ifs" 1177+fi 1178+fi 1179+CC="$ac_cv_prog_CC" 1180+if test -n "$CC"; then 1181+ echo "$ac_t""$CC" 1>&6 1182+else 1183+ echo "$ac_t""no" 1>&6 1184+fi 1185+ ;; 1186+ esac 1187+ fi 1188+ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; echo "configure: error: no acceptable cc found in \$PATH" 1>&5; exit 1; } 1189+fi 1190+ 1191+echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1192+echo "configure:1176: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1193+ 1194+ac_ext=c 1195+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1196+ac_cpp='$CPP $CPPFLAGS' 1197+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1198+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1199+cross_compiling=$ac_cv_prog_cc_cross 1200+ 1201+if test "$CC_TYPE" = "clang-cl"; then 1202+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 1203+fi 1204+ 1205+if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then 1206+ echo $ac_n "(cached) $ac_c" 1>&6 1207+else 1208+ cat > conftest.$ac_ext << EOF 1209+ 1210+#line 1194 "configure" 1211+#include "confdefs.h" 1212+ 1213+main(){return(0);} 1214+EOF 1215+if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1216+ ac_cv_prog_cc_works=yes 1217+ # If we can't run a trivial program, we are probably using a cross compiler. 1218+ if (./conftest; exit) 2>/dev/null; then 1219+ ac_cv_prog_cc_cross=no 1220+ else 1221+ ac_cv_prog_cc_cross=yes 1222+ fi 1223+else 1224+ echo "configure: failed program was:" >&5 1225+ cat conftest.$ac_ext >&5 1226+ ac_cv_prog_cc_works=no 1227+fi 1228+rm -fr conftest* 1229+fi 1230+ 1231+ac_ext=c 1232+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1233+ac_cpp='$CPP $CPPFLAGS' 1234+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1235+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1236+cross_compiling=$ac_cv_prog_cc_cross 1237+ 1238+if test "$CC_TYPE" = "clang-cl"; then 1239+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 1240+fi 1241+ 1242+echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1243+if test $ac_cv_prog_cc_works = no; then 1244+ { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&5; exit 1; } 1245+fi 1246+echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1247+echo "configure:1231: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1248+echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1249+cross_compiling=$ac_cv_prog_cc_cross 1250+ 1251+echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1252+echo "configure:1236: checking whether we are using GNU C" >&5 1253+if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1254+ echo $ac_n "(cached) $ac_c" 1>&6 1255+else 1256+ cat > conftest.c <<EOF 1257+#ifdef __GNUC__ 1258+ yes; 1259+#endif 1260+EOF 1261+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1262+ ac_cv_prog_gcc=yes 1263+else 1264+ ac_cv_prog_gcc=no 1265+fi 1266+fi 1267+ 1268+echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1269+ 1270+if test $ac_cv_prog_gcc = yes; then 1271+ GCC=yes 1272+else 1273+ GCC= 1274+fi 1275+ 1276+ac_test_CFLAGS="${CFLAGS+set}" 1277+ac_save_CFLAGS="$CFLAGS" 1278+CFLAGS= 1279+echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1280+echo "configure:1264: checking whether ${CC-cc} accepts -g" >&5 1281+if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1282+ echo $ac_n "(cached) $ac_c" 1>&6 1283+else 1284+ echo 'void f(){}' > conftest.c 1285+if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1286+ ac_cv_prog_cc_g=yes 1287+else 1288+ ac_cv_prog_cc_g=no 1289+fi 1290+rm -f conftest* 1291+ 1292+fi 1293+ 1294+echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1295+if test "$ac_test_CFLAGS" = set; then 1296+ CFLAGS="$ac_save_CFLAGS" 1297+elif test $ac_cv_prog_cc_g = yes; then 1298+ if test "$GCC" = yes; then 1299+ CFLAGS="-g -O2" 1300+ else 1301+ CFLAGS="-g" 1302+ fi 1303+else 1304+ if test "$GCC" = yes; then 1305+ CFLAGS="-O2" 1306+ else 1307+ CFLAGS= 1308+ fi 1309+fi 1310+ 1311+for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 1312+do 1313+# Extract the first word of "$ac_prog", so it can be a program name with args. 1314+set dummy $ac_prog; ac_word=$2 1315+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1316+echo "configure:1300: checking for $ac_word" >&5 1317+if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 1318+ echo $ac_n "(cached) $ac_c" 1>&6 1319+else 1320+ if test -n "$CXX"; then 1321+ ac_cv_prog_CXX="$CXX" # Let the user override the test. 1322+else 1323+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1324+ ac_dummy="$PATH" 1325+ for ac_dir in $ac_dummy; do 1326+ test -z "$ac_dir" && ac_dir=. 1327+ if test -f $ac_dir/$ac_word; then 1328+ ac_cv_prog_CXX="$ac_prog" 1329+ break 1330+ fi 1331+ done 1332+ IFS="$ac_save_ifs" 1333+fi 1334+fi 1335+CXX="$ac_cv_prog_CXX" 1336+if test -n "$CXX"; then 1337+ echo "$ac_t""$CXX" 1>&6 1338+else 1339+ echo "$ac_t""no" 1>&6 1340+fi 1341+ 1342+test -n "$CXX" && break 1343+done 1344+test -n "$CXX" || CXX="gcc" 1345+ 1346+ 1347+echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1348+echo "configure:1332: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1349+ 1350+ac_ext=C 1351+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1352+ac_cpp='$CXXCPP $CPPFLAGS' 1353+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1354+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1355+cross_compiling=$ac_cv_prog_cxx_cross 1356+ 1357+if test "$CC_TYPE" = "clang-cl"; then 1358+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 1359+fi 1360+ 1361+if eval "test \"`echo '$''{'ac_cv_prog_cxx_works'+set}'`\" = set"; then 1362+ echo $ac_n "(cached) $ac_c" 1>&6 1363+else 1364+ cat > conftest.$ac_ext << EOF 1365+ 1366+#line 1350 "configure" 1367+#include "confdefs.h" 1368+ 1369+int main(){return(0);} 1370+EOF 1371+if { (eval echo configure:1355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1372+ ac_cv_prog_cxx_works=yes 1373+ # If we can't run a trivial program, we are probably using a cross compiler. 1374+ if (./conftest; exit) 2>/dev/null; then 1375+ ac_cv_prog_cxx_cross=no 1376+ else 1377+ ac_cv_prog_cxx_cross=yes 1378+ fi 1379+else 1380+ echo "configure: failed program was:" >&5 1381+ cat conftest.$ac_ext >&5 1382+ ac_cv_prog_cxx_works=no 1383+fi 1384+rm -fr conftest* 1385+fi 1386+ 1387+ac_ext=c 1388+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1389+ac_cpp='$CPP $CPPFLAGS' 1390+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1391+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1392+cross_compiling=$ac_cv_prog_cc_cross 1393+ 1394+if test "$CC_TYPE" = "clang-cl"; then 1395+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 1396+fi 1397+ 1398+echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 1399+if test $ac_cv_prog_cxx_works = no; then 1400+ { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&5; exit 1; } 1401+fi 1402+echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1403+echo "configure:1387: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1404+echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1405+cross_compiling=$ac_cv_prog_cxx_cross 1406+ 1407+echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1408+echo "configure:1392: checking whether we are using GNU C++" >&5 1409+if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1410+ echo $ac_n "(cached) $ac_c" 1>&6 1411+else 1412+ cat > conftest.C <<EOF 1413+#ifdef __GNUC__ 1414+ yes; 1415+#endif 1416+EOF 1417+if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1418+ ac_cv_prog_gxx=yes 1419+else 1420+ ac_cv_prog_gxx=no 1421+fi 1422+fi 1423+ 1424+echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1425+ 1426+if test $ac_cv_prog_gxx = yes; then 1427+ GXX=yes 1428+else 1429+ GXX= 1430+fi 1431+ 1432+ac_test_CXXFLAGS="${CXXFLAGS+set}" 1433+ac_save_CXXFLAGS="$CXXFLAGS" 1434+CXXFLAGS= 1435+echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1436+echo "configure:1420: checking whether ${CXX-g++} accepts -g" >&5 1437+if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1438+ echo $ac_n "(cached) $ac_c" 1>&6 1439+else 1440+ echo 'void f(){}' > conftest.cc 1441+if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1442+ ac_cv_prog_cxx_g=yes 1443+else 1444+ ac_cv_prog_cxx_g=no 1445+fi 1446+rm -f conftest* 1447+ 1448+fi 1449+ 1450+echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1451+if test "$ac_test_CXXFLAGS" = set; then 1452+ CXXFLAGS="$ac_save_CXXFLAGS" 1453+elif test $ac_cv_prog_cxx_g = yes; then 1454+ if test "$GXX" = yes; then 1455+ CXXFLAGS="-g -O2" 1456+ else 1457+ CXXFLAGS="-g" 1458+ fi 1459+else 1460+ if test "$GXX" = yes; then 1461+ CXXFLAGS="-O2" 1462+ else 1463+ CXXFLAGS= 1464+ fi 1465+fi 1466+ 1467+ 1468+for ac_prog in "${TOOLCHAIN_PREFIX}ranlib" 1469+do 1470+# Extract the first word of "$ac_prog", so it can be a program name with args. 1471+set dummy $ac_prog; ac_word=$2 1472+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1473+echo "configure:1457: checking for $ac_word" >&5 1474+if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1475+ echo $ac_n "(cached) $ac_c" 1>&6 1476+else 1477+ if test -n "$RANLIB"; then 1478+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1479+else 1480+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1481+ ac_dummy="$PATH" 1482+ for ac_dir in $ac_dummy; do 1483+ test -z "$ac_dir" && ac_dir=. 1484+ if test -f $ac_dir/$ac_word; then 1485+ ac_cv_prog_RANLIB="$ac_prog" 1486+ break 1487+ fi 1488+ done 1489+ IFS="$ac_save_ifs" 1490+fi 1491+fi 1492+RANLIB="$ac_cv_prog_RANLIB" 1493+if test -n "$RANLIB"; then 1494+ echo "$ac_t""$RANLIB" 1>&6 1495+else 1496+ echo "$ac_t""no" 1>&6 1497+fi 1498+ 1499+test -n "$RANLIB" && break 1500+done 1501+test -n "$RANLIB" || RANLIB=":" 1502+ 1503+for ac_prog in "${TOOLCHAIN_PREFIX}as" 1504+do 1505+# Extract the first word of "$ac_prog", so it can be a program name with args. 1506+set dummy $ac_prog; ac_word=$2 1507+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1508+echo "configure:1492: checking for $ac_word" >&5 1509+if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then 1510+ echo $ac_n "(cached) $ac_c" 1>&6 1511+else 1512+ if test -n "$AS"; then 1513+ ac_cv_prog_AS="$AS" # Let the user override the test. 1514+else 1515+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1516+ ac_dummy="$PATH" 1517+ for ac_dir in $ac_dummy; do 1518+ test -z "$ac_dir" && ac_dir=. 1519+ if test -f $ac_dir/$ac_word; then 1520+ ac_cv_prog_AS="$ac_prog" 1521+ break 1522+ fi 1523+ done 1524+ IFS="$ac_save_ifs" 1525+fi 1526+fi 1527+AS="$ac_cv_prog_AS" 1528+if test -n "$AS"; then 1529+ echo "$ac_t""$AS" 1>&6 1530+else 1531+ echo "$ac_t""no" 1>&6 1532+fi 1533+ 1534+test -n "$AS" && break 1535+done 1536+test -n "$AS" || AS=":" 1537+ 1538+for ac_prog in "${TOOLCHAIN_PREFIX}lipo" 1539+do 1540+# Extract the first word of "$ac_prog", so it can be a program name with args. 1541+set dummy $ac_prog; ac_word=$2 1542+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1543+echo "configure:1527: checking for $ac_word" >&5 1544+if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then 1545+ echo $ac_n "(cached) $ac_c" 1>&6 1546+else 1547+ if test -n "$LIPO"; then 1548+ ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 1549+else 1550+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1551+ ac_dummy="$PATH" 1552+ for ac_dir in $ac_dummy; do 1553+ test -z "$ac_dir" && ac_dir=. 1554+ if test -f $ac_dir/$ac_word; then 1555+ ac_cv_prog_LIPO="$ac_prog" 1556+ break 1557+ fi 1558+ done 1559+ IFS="$ac_save_ifs" 1560+fi 1561+fi 1562+LIPO="$ac_cv_prog_LIPO" 1563+if test -n "$LIPO"; then 1564+ echo "$ac_t""$LIPO" 1>&6 1565+else 1566+ echo "$ac_t""no" 1>&6 1567+fi 1568+ 1569+test -n "$LIPO" && break 1570+done 1571+test -n "$LIPO" || LIPO=":" 1572+ 1573+for ac_prog in "${TOOLCHAIN_PREFIX}strip" 1574+do 1575+# Extract the first word of "$ac_prog", so it can be a program name with args. 1576+set dummy $ac_prog; ac_word=$2 1577+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1578+echo "configure:1562: checking for $ac_word" >&5 1579+if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 1580+ echo $ac_n "(cached) $ac_c" 1>&6 1581+else 1582+ if test -n "$STRIP"; then 1583+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1584+else 1585+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1586+ ac_dummy="$PATH" 1587+ for ac_dir in $ac_dummy; do 1588+ test -z "$ac_dir" && ac_dir=. 1589+ if test -f $ac_dir/$ac_word; then 1590+ ac_cv_prog_STRIP="$ac_prog" 1591+ break 1592+ fi 1593+ done 1594+ IFS="$ac_save_ifs" 1595+fi 1596+fi 1597+STRIP="$ac_cv_prog_STRIP" 1598+if test -n "$STRIP"; then 1599+ echo "$ac_t""$STRIP" 1>&6 1600+else 1601+ echo "$ac_t""no" 1>&6 1602+fi 1603+ 1604+test -n "$STRIP" && break 1605+done 1606+test -n "$STRIP" || STRIP=":" 1607+ 1608+for ac_prog in "${TOOLCHAIN_PREFIX}otool" 1609+do 1610+# Extract the first word of "$ac_prog", so it can be a program name with args. 1611+set dummy $ac_prog; ac_word=$2 1612+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1613+echo "configure:1597: checking for $ac_word" >&5 1614+if eval "test \"`echo '$''{'ac_cv_prog_OTOOL'+set}'`\" = set"; then 1615+ echo $ac_n "(cached) $ac_c" 1>&6 1616+else 1617+ if test -n "$OTOOL"; then 1618+ ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 1619+else 1620+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1621+ ac_dummy="$PATH" 1622+ for ac_dir in $ac_dummy; do 1623+ test -z "$ac_dir" && ac_dir=. 1624+ if test -f $ac_dir/$ac_word; then 1625+ ac_cv_prog_OTOOL="$ac_prog" 1626+ break 1627+ fi 1628+ done 1629+ IFS="$ac_save_ifs" 1630+fi 1631+fi 1632+OTOOL="$ac_cv_prog_OTOOL" 1633+if test -n "$OTOOL"; then 1634+ echo "$ac_t""$OTOOL" 1>&6 1635+else 1636+ echo "$ac_t""no" 1>&6 1637+fi 1638+ 1639+test -n "$OTOOL" && break 1640+done 1641+test -n "$OTOOL" || OTOOL=":" 1642+ 1643+for ac_prog in "${TOOLCHAIN_PREFIX}install_name_tool" 1644+do 1645+# Extract the first word of "$ac_prog", so it can be a program name with args. 1646+set dummy $ac_prog; ac_word=$2 1647+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1648+echo "configure:1632: checking for $ac_word" >&5 1649+if eval "test \"`echo '$''{'ac_cv_prog_INSTALL_NAME_TOOL'+set}'`\" = set"; then 1650+ echo $ac_n "(cached) $ac_c" 1>&6 1651+else 1652+ if test -n "$INSTALL_NAME_TOOL"; then 1653+ ac_cv_prog_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test. 1654+else 1655+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1656+ ac_dummy="$PATH" 1657+ for ac_dir in $ac_dummy; do 1658+ test -z "$ac_dir" && ac_dir=. 1659+ if test -f $ac_dir/$ac_word; then 1660+ ac_cv_prog_INSTALL_NAME_TOOL="$ac_prog" 1661+ break 1662+ fi 1663+ done 1664+ IFS="$ac_save_ifs" 1665+fi 1666+fi 1667+INSTALL_NAME_TOOL="$ac_cv_prog_INSTALL_NAME_TOOL" 1668+if test -n "$INSTALL_NAME_TOOL"; then 1669+ echo "$ac_t""$INSTALL_NAME_TOOL" 1>&6 1670+else 1671+ echo "$ac_t""no" 1>&6 1672+fi 1673+ 1674+test -n "$INSTALL_NAME_TOOL" && break 1675+done 1676+test -n "$INSTALL_NAME_TOOL" || INSTALL_NAME_TOOL=":" 1677+ 1678+for ac_prog in "${TOOLCHAIN_PREFIX}objcopy" 1679+do 1680+# Extract the first word of "$ac_prog", so it can be a program name with args. 1681+set dummy $ac_prog; ac_word=$2 1682+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1683+echo "configure:1667: checking for $ac_word" >&5 1684+if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then 1685+ echo $ac_n "(cached) $ac_c" 1>&6 1686+else 1687+ if test -n "$OBJCOPY"; then 1688+ ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 1689+else 1690+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1691+ ac_dummy="$PATH" 1692+ for ac_dir in $ac_dummy; do 1693+ test -z "$ac_dir" && ac_dir=. 1694+ if test -f $ac_dir/$ac_word; then 1695+ ac_cv_prog_OBJCOPY="$ac_prog" 1696+ break 1697+ fi 1698+ done 1699+ IFS="$ac_save_ifs" 1700+fi 1701+fi 1702+OBJCOPY="$ac_cv_prog_OBJCOPY" 1703+if test -n "$OBJCOPY"; then 1704+ echo "$ac_t""$OBJCOPY" 1>&6 1705+else 1706+ echo "$ac_t""no" 1>&6 1707+fi 1708+ 1709+test -n "$OBJCOPY" && break 1710+done 1711+test -n "$OBJCOPY" || OBJCOPY=":" 1712+ 1713+PATH=$_SAVE_PATH 1714+ 1715+else 1716+ # Extract the first word of "gcc", so it can be a program name with args. 1717+set dummy gcc; ac_word=$2 1718+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1719+echo "configure:1703: checking for $ac_word" >&5 1720+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1721+ echo $ac_n "(cached) $ac_c" 1>&6 1722+else 1723+ if test -n "$CC"; then 1724+ ac_cv_prog_CC="$CC" # Let the user override the test. 1725+else 1726+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1727+ ac_dummy="$PATH" 1728+ for ac_dir in $ac_dummy; do 1729+ test -z "$ac_dir" && ac_dir=. 1730+ if test -f $ac_dir/$ac_word; then 1731+ ac_cv_prog_CC="gcc" 1732+ break 1733+ fi 1734+ done 1735+ IFS="$ac_save_ifs" 1736+fi 1737+fi 1738+CC="$ac_cv_prog_CC" 1739+if test -n "$CC"; then 1740+ echo "$ac_t""$CC" 1>&6 1741+else 1742+ echo "$ac_t""no" 1>&6 1743+fi 1744+ 1745+if test -z "$CC"; then 1746+ # Extract the first word of "cc", so it can be a program name with args. 1747+set dummy cc; ac_word=$2 1748+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1749+echo "configure:1733: checking for $ac_word" >&5 1750+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1751+ echo $ac_n "(cached) $ac_c" 1>&6 1752+else 1753+ if test -n "$CC"; then 1754+ ac_cv_prog_CC="$CC" # Let the user override the test. 1755+else 1756+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1757+ ac_prog_rejected=no 1758+ ac_dummy="$PATH" 1759+ for ac_dir in $ac_dummy; do 1760+ test -z "$ac_dir" && ac_dir=. 1761+ if test -f $ac_dir/$ac_word; then 1762+ if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1763+ ac_prog_rejected=yes 1764+ continue 1765+ fi 1766+ ac_cv_prog_CC="cc" 1767+ break 1768+ fi 1769+ done 1770+ IFS="$ac_save_ifs" 1771+if test $ac_prog_rejected = yes; then 1772+ # We found a bogon in the path, so make sure we never use it. 1773+ set dummy $ac_cv_prog_CC 1774+ shift 1775+ if test $# -gt 0; then 1776+ # We chose a different compiler from the bogus one. 1777+ # However, it has the same basename, so the bogon will be chosen 1778+ # first if we set CC to just the basename; use the full file name. 1779+ shift 1780+ set dummy "$ac_dir/$ac_word" "$@" 1781+ shift 1782+ ac_cv_prog_CC="$@" 1783+ fi 1784+fi 1785+fi 1786+fi 1787+CC="$ac_cv_prog_CC" 1788+if test -n "$CC"; then 1789+ echo "$ac_t""$CC" 1>&6 1790+else 1791+ echo "$ac_t""no" 1>&6 1792+fi 1793+ 1794+ if test -z "$CC"; then 1795+ case "`uname -s`" in 1796+ *win32* | *WIN32*) 1797+ # Extract the first word of "cl", so it can be a program name with args. 1798+set dummy cl; ac_word=$2 1799+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1800+echo "configure:1784: checking for $ac_word" >&5 1801+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1802+ echo $ac_n "(cached) $ac_c" 1>&6 1803+else 1804+ if test -n "$CC"; then 1805+ ac_cv_prog_CC="$CC" # Let the user override the test. 1806+else 1807+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1808+ ac_dummy="$PATH" 1809+ for ac_dir in $ac_dummy; do 1810+ test -z "$ac_dir" && ac_dir=. 1811+ if test -f $ac_dir/$ac_word; then 1812+ ac_cv_prog_CC="cl" 1813+ break 1814+ fi 1815+ done 1816+ IFS="$ac_save_ifs" 1817+fi 1818+fi 1819+CC="$ac_cv_prog_CC" 1820+if test -n "$CC"; then 1821+ echo "$ac_t""$CC" 1>&6 1822+else 1823+ echo "$ac_t""no" 1>&6 1824+fi 1825+ ;; 1826+ esac 1827+ fi 1828+ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; echo "configure: error: no acceptable cc found in \$PATH" 1>&5; exit 1; } 1829+fi 1830+ 1831+echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1832+echo "configure:1816: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1833+ 1834+ac_ext=c 1835+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1836+ac_cpp='$CPP $CPPFLAGS' 1837+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1838+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1839+cross_compiling=$ac_cv_prog_cc_cross 1840+ 1841+if test "$CC_TYPE" = "clang-cl"; then 1842+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 1843+fi 1844+ 1845+if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then 1846+ echo $ac_n "(cached) $ac_c" 1>&6 1847+else 1848+ cat > conftest.$ac_ext << EOF 1849+ 1850+#line 1834 "configure" 1851+#include "confdefs.h" 1852+ 1853+main(){return(0);} 1854+EOF 1855+if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1856+ ac_cv_prog_cc_works=yes 1857+ # If we can't run a trivial program, we are probably using a cross compiler. 1858+ if (./conftest; exit) 2>/dev/null; then 1859+ ac_cv_prog_cc_cross=no 1860+ else 1861+ ac_cv_prog_cc_cross=yes 1862+ fi 1863+else 1864+ echo "configure: failed program was:" >&5 1865+ cat conftest.$ac_ext >&5 1866+ ac_cv_prog_cc_works=no 1867+fi 1868+rm -fr conftest* 1869+fi 1870+ 1871+ac_ext=c 1872+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1873+ac_cpp='$CPP $CPPFLAGS' 1874+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1875+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1876+cross_compiling=$ac_cv_prog_cc_cross 1877+ 1878+if test "$CC_TYPE" = "clang-cl"; then 1879+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 1880+fi 1881+ 1882+echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1883+if test $ac_cv_prog_cc_works = no; then 1884+ { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&5; exit 1; } 1885+fi 1886+echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1887+echo "configure:1871: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1888+echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1889+cross_compiling=$ac_cv_prog_cc_cross 1890+ 1891+echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1892+echo "configure:1876: checking whether we are using GNU C" >&5 1893+if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1894+ echo $ac_n "(cached) $ac_c" 1>&6 1895+else 1896+ cat > conftest.c <<EOF 1897+#ifdef __GNUC__ 1898+ yes; 1899+#endif 1900+EOF 1901+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1902+ ac_cv_prog_gcc=yes 1903+else 1904+ ac_cv_prog_gcc=no 1905+fi 1906+fi 1907+ 1908+echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1909+ 1910+if test $ac_cv_prog_gcc = yes; then 1911+ GCC=yes 1912+else 1913+ GCC= 1914+fi 1915+ 1916+ac_test_CFLAGS="${CFLAGS+set}" 1917+ac_save_CFLAGS="$CFLAGS" 1918+CFLAGS= 1919+echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1920+echo "configure:1904: checking whether ${CC-cc} accepts -g" >&5 1921+if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1922+ echo $ac_n "(cached) $ac_c" 1>&6 1923+else 1924+ echo 'void f(){}' > conftest.c 1925+if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1926+ ac_cv_prog_cc_g=yes 1927+else 1928+ ac_cv_prog_cc_g=no 1929+fi 1930+rm -f conftest* 1931+ 1932+fi 1933+ 1934+echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1935+if test "$ac_test_CFLAGS" = set; then 1936+ CFLAGS="$ac_save_CFLAGS" 1937+elif test $ac_cv_prog_cc_g = yes; then 1938+ if test "$GCC" = yes; then 1939+ CFLAGS="-g -O2" 1940+ else 1941+ CFLAGS="-g" 1942+ fi 1943+else 1944+ if test "$GCC" = yes; then 1945+ CFLAGS="-O2" 1946+ else 1947+ CFLAGS= 1948+ fi 1949+fi 1950+ 1951+ for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 1952+do 1953+# Extract the first word of "$ac_prog", so it can be a program name with args. 1954+set dummy $ac_prog; ac_word=$2 1955+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1956+echo "configure:1940: checking for $ac_word" >&5 1957+if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 1958+ echo $ac_n "(cached) $ac_c" 1>&6 1959+else 1960+ if test -n "$CXX"; then 1961+ ac_cv_prog_CXX="$CXX" # Let the user override the test. 1962+else 1963+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1964+ ac_dummy="$PATH" 1965+ for ac_dir in $ac_dummy; do 1966+ test -z "$ac_dir" && ac_dir=. 1967+ if test -f $ac_dir/$ac_word; then 1968+ ac_cv_prog_CXX="$ac_prog" 1969+ break 1970+ fi 1971+ done 1972+ IFS="$ac_save_ifs" 1973+fi 1974+fi 1975+CXX="$ac_cv_prog_CXX" 1976+if test -n "$CXX"; then 1977+ echo "$ac_t""$CXX" 1>&6 1978+else 1979+ echo "$ac_t""no" 1>&6 1980+fi 1981+ 1982+test -n "$CXX" && break 1983+done 1984+test -n "$CXX" || CXX="gcc" 1985+ 1986+ 1987+echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1988+echo "configure:1972: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1989+ 1990+ac_ext=C 1991+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1992+ac_cpp='$CXXCPP $CPPFLAGS' 1993+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1994+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1995+cross_compiling=$ac_cv_prog_cxx_cross 1996+ 1997+if test "$CC_TYPE" = "clang-cl"; then 1998+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 1999+fi 2000+ 2001+if eval "test \"`echo '$''{'ac_cv_prog_cxx_works'+set}'`\" = set"; then 2002+ echo $ac_n "(cached) $ac_c" 1>&6 2003+else 2004+ cat > conftest.$ac_ext << EOF 2005+ 2006+#line 1990 "configure" 2007+#include "confdefs.h" 2008+ 2009+int main(){return(0);} 2010+EOF 2011+if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2012+ ac_cv_prog_cxx_works=yes 2013+ # If we can't run a trivial program, we are probably using a cross compiler. 2014+ if (./conftest; exit) 2>/dev/null; then 2015+ ac_cv_prog_cxx_cross=no 2016+ else 2017+ ac_cv_prog_cxx_cross=yes 2018+ fi 2019+else 2020+ echo "configure: failed program was:" >&5 2021+ cat conftest.$ac_ext >&5 2022+ ac_cv_prog_cxx_works=no 2023+fi 2024+rm -fr conftest* 2025+fi 2026+ 2027+ac_ext=c 2028+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2029+ac_cpp='$CPP $CPPFLAGS' 2030+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2031+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2032+cross_compiling=$ac_cv_prog_cc_cross 2033+ 2034+if test "$CC_TYPE" = "clang-cl"; then 2035+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 2036+fi 2037+ 2038+echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 2039+if test $ac_cv_prog_cxx_works = no; then 2040+ { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&5; exit 1; } 2041+fi 2042+echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2043+echo "configure:2027: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 2044+echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 2045+cross_compiling=$ac_cv_prog_cxx_cross 2046+ 2047+echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 2048+echo "configure:2032: checking whether we are using GNU C++" >&5 2049+if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 2050+ echo $ac_n "(cached) $ac_c" 1>&6 2051+else 2052+ cat > conftest.C <<EOF 2053+#ifdef __GNUC__ 2054+ yes; 2055+#endif 2056+EOF 2057+if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2058+ ac_cv_prog_gxx=yes 2059+else 2060+ ac_cv_prog_gxx=no 2061+fi 2062+fi 2063+ 2064+echo "$ac_t""$ac_cv_prog_gxx" 1>&6 2065+ 2066+if test $ac_cv_prog_gxx = yes; then 2067+ GXX=yes 2068+else 2069+ GXX= 2070+fi 2071+ 2072+ac_test_CXXFLAGS="${CXXFLAGS+set}" 2073+ac_save_CXXFLAGS="$CXXFLAGS" 2074+CXXFLAGS= 2075+echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 2076+echo "configure:2060: checking whether ${CXX-g++} accepts -g" >&5 2077+if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 2078+ echo $ac_n "(cached) $ac_c" 1>&6 2079+else 2080+ echo 'void f(){}' > conftest.cc 2081+if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2082+ ac_cv_prog_cxx_g=yes 2083+else 2084+ ac_cv_prog_cxx_g=no 2085+fi 2086+rm -f conftest* 2087+ 2088+fi 2089+ 2090+echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2091+if test "$ac_test_CXXFLAGS" = set; then 2092+ CXXFLAGS="$ac_save_CXXFLAGS" 2093+elif test $ac_cv_prog_cxx_g = yes; then 2094+ if test "$GXX" = yes; then 2095+ CXXFLAGS="-g -O2" 2096+ else 2097+ CXXFLAGS="-g" 2098+ fi 2099+else 2100+ if test "$GXX" = yes; then 2101+ CXXFLAGS="-O2" 2102+ else 2103+ CXXFLAGS= 2104+ fi 2105+fi 2106+ 2107+ # Extract the first word of "ranlib", so it can be a program name with args. 2108+set dummy ranlib; ac_word=$2 2109+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2110+echo "configure:2094: checking for $ac_word" >&5 2111+if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2112+ echo $ac_n "(cached) $ac_c" 1>&6 2113+else 2114+ if test -n "$RANLIB"; then 2115+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2116+else 2117+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2118+ ac_dummy="$PATH" 2119+ for ac_dir in $ac_dummy; do 2120+ test -z "$ac_dir" && ac_dir=. 2121+ if test -f $ac_dir/$ac_word; then 2122+ ac_cv_prog_RANLIB="ranlib" 2123+ break 2124+ fi 2125+ done 2126+ IFS="$ac_save_ifs" 2127+ test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 2128+fi 2129+fi 2130+RANLIB="$ac_cv_prog_RANLIB" 2131+if test -n "$RANLIB"; then 2132+ echo "$ac_t""$RANLIB" 1>&6 2133+else 2134+ echo "$ac_t""no" 1>&6 2135+fi 2136+ 2137+ for ac_prog in $AS as 2138+do 2139+# Extract the first word of "$ac_prog", so it can be a program name with args. 2140+set dummy $ac_prog; ac_word=$2 2141+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2142+echo "configure:2126: checking for $ac_word" >&5 2143+if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then 2144+ echo $ac_n "(cached) $ac_c" 1>&6 2145+else 2146+ case "$AS" in 2147+ /*) 2148+ ac_cv_path_AS="$AS" # Let the user override the test with a path. 2149+ ;; 2150+ ?:/*) 2151+ ac_cv_path_AS="$AS" # Let the user override the test with a dos path. 2152+ ;; 2153+ *) 2154+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2155+ ac_dummy="$PATH" 2156+ for ac_dir in $ac_dummy; do 2157+ test -z "$ac_dir" && ac_dir=. 2158+ if test -f $ac_dir/$ac_word; then 2159+ ac_cv_path_AS="$ac_dir/$ac_word" 2160+ break 2161+ fi 2162+ done 2163+ IFS="$ac_save_ifs" 2164+ ;; 2165+esac 2166+fi 2167+AS="$ac_cv_path_AS" 2168+if test -n "$AS"; then 2169+ echo "$ac_t""$AS" 1>&6 2170+else 2171+ echo "$ac_t""no" 1>&6 2172+fi 2173+ 2174+test -n "$AS" && break 2175+done 2176+test -n "$AS" || AS="$CC" 2177+ 2178+ if test "$msyshost"; then 2179+ case "$AS" in 2180+ /*) 2181+ tmp_DIRNAME=`dirname "$AS"` 2182+ tmp_BASENAME=`basename "$AS"` 2183+ tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` 2184+ AS="$tmp_PWD/$tmp_BASENAME" 2185+ if test -e "$AS.exe"; then 2186+ AS="$AS.exe" 2187+ fi 2188+ esac 2189+ fi 2190+ 2191+ for ac_prog in strip 2192+do 2193+# Extract the first word of "$ac_prog", so it can be a program name with args. 2194+set dummy $ac_prog; ac_word=$2 2195+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2196+echo "configure:2180: checking for $ac_word" >&5 2197+if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 2198+ echo $ac_n "(cached) $ac_c" 1>&6 2199+else 2200+ if test -n "$STRIP"; then 2201+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2202+else 2203+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2204+ ac_dummy="$PATH" 2205+ for ac_dir in $ac_dummy; do 2206+ test -z "$ac_dir" && ac_dir=. 2207+ if test -f $ac_dir/$ac_word; then 2208+ ac_cv_prog_STRIP="$ac_prog" 2209+ break 2210+ fi 2211+ done 2212+ IFS="$ac_save_ifs" 2213+fi 2214+fi 2215+STRIP="$ac_cv_prog_STRIP" 2216+if test -n "$STRIP"; then 2217+ echo "$ac_t""$STRIP" 1>&6 2218+else 2219+ echo "$ac_t""no" 1>&6 2220+fi 2221+ 2222+test -n "$STRIP" && break 2223+done 2224+test -n "$STRIP" || STRIP=":" 2225+ 2226+ if test -z "$HOST_CC"; then 2227+ HOST_CC='$(CC)' 2228+ fi 2229+ if test -z "$HOST_CXX"; then 2230+ HOST_CXX='$(CXX)' 2231+ fi 2232+fi 2233+ 2234+ 2235+GNU_CC= 2236+GNU_CXX= 2237+if test "$CC_TYPE" = "gcc"; then 2238+ GNU_CC=1 2239+ GNU_CXX=1 2240+fi 2241+ 2242+CLANG_CC= 2243+CLANG_CXX= 2244+CLANG_CL= 2245+if test "$CC_TYPE" = "clang"; then 2246+ GNU_CC=1 2247+ GNU_CXX=1 2248+ CLANG_CC=1 2249+ CLANG_CXX=1 2250+fi 2251+if test "$CC_TYPE" = "clang-cl"; then 2252+ CLANG_CL=1 2253+fi 2254+ 2255+ 2256+ 2257+ 2258+ 2259+ 2260+# Target the Windows 8.1 SDK by default 2261+WINVER=601 2262+ 2263+case "$target" in 2264+*-mingw*) 2265+ if test "$GCC" != "yes"; then 2266+ # Check to see if we are really running in a msvc environemnt 2267+ _WIN32_MSVC=1 2268+ 2269+ # Make sure compilers are valid 2270+ CFLAGS="$CFLAGS -nologo" 2271+ CXXFLAGS="$CXXFLAGS -TP -nologo" 2272+ if test -z "$CLANG_CL"; then 2273+ CPPFLAGS="$CPPFLAGS -utf-8" 2274+ fi 2275+ # _CRT_SECURE_NO_WARNINGS disables warnings about using MSVC-specific 2276+ # secure CRT functions. 2277+ CXXFLAGS="$CXXFLAGS -D_CRT_SECURE_NO_WARNINGS" 2278+ 2279+ ac_ext=c 2280+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2281+ac_cpp='$CPP $CPPFLAGS' 2282+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2283+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2284+cross_compiling=$ac_cv_prog_cc_cross 2285+ 2286+if test "$CC_TYPE" = "clang-cl"; then 2287+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 2288+fi 2289+ 2290+ cat > conftest.$ac_ext <<EOF 2291+#line 2275 "configure" 2292+#include "confdefs.h" 2293+#include <stdio.h> 2294+int main() { 2295+ printf("Hello World\n"); 2296+; return 0; } 2297+EOF 2298+if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2299+ : 2300+else 2301+ echo "configure: failed program was:" >&5 2302+ cat conftest.$ac_ext >&5 2303+ rm -rf conftest* 2304+ { echo "configure: error: \$(CC) test failed. You must have MS VC++ in your path to build." 1>&2; echo "configure: error: \$(CC) test failed. You must have MS VC++ in your path to build." 1>&5; exit 1; } 2305+fi 2306+rm -f conftest* 2307+ 2308+ ac_ext=C 2309+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2310+ac_cpp='$CXXCPP $CPPFLAGS' 2311+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2312+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2313+cross_compiling=$ac_cv_prog_cxx_cross 2314+ 2315+if test "$CC_TYPE" = "clang-cl"; then 2316+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 2317+fi 2318+ 2319+ cat > conftest.$ac_ext <<EOF 2320+#line 2304 "configure" 2321+#include "confdefs.h" 2322+#include <new.h> 2323+int main() { 2324+ unsigned *test = new unsigned(42); 2325+; return 0; } 2326+EOF 2327+if { (eval echo configure:2311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2328+ : 2329+else 2330+ echo "configure: failed program was:" >&5 2331+ cat conftest.$ac_ext >&5 2332+ rm -rf conftest* 2333+ { echo "configure: error: \$(CXX) test failed. You must have MS VC++ in your path to build." 1>&2; echo "configure: error: \$(CXX) test failed. You must have MS VC++ in your path to build." 1>&5; exit 1; } 2334+fi 2335+rm -f conftest* 2336+ ac_ext=c 2337+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2338+ac_cpp='$CPP $CPPFLAGS' 2339+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2340+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2341+cross_compiling=$ac_cv_prog_cc_cross 2342+ 2343+if test "$CC_TYPE" = "clang-cl"; then 2344+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 2345+fi 2346+ 2347+ 2348+ 2349+ _MSVC_VER_FILTER='s|.*[^!-~]([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?).*|\1|p' 2350+ 2351+ 2352+ cat >> confdefs.pytmp <<\EOF 2353+ (''' _CRT_SECURE_NO_WARNINGS ''', ' 1 ') 2354+EOF 2355+cat >> confdefs.h <<\EOF 2356+#define _CRT_SECURE_NO_WARNINGS 1 2357+EOF 2358+ 2359+ cat >> confdefs.pytmp <<\EOF 2360+ (''' _CRT_NONSTDC_NO_WARNINGS ''', ' 1 ') 2361+EOF 2362+cat >> confdefs.h <<\EOF 2363+#define _CRT_NONSTDC_NO_WARNINGS 1 2364+EOF 2365+ 2366+ cat >> confdefs.pytmp <<\EOF 2367+ (''' _USE_MATH_DEFINES ''', ' 1 ') 2368+EOF 2369+cat >> confdefs.h <<\EOF 2370+#define _USE_MATH_DEFINES 1 2371+EOF 2372+ # Otherwise MSVC's math.h doesn't #define M_PI. 2373+ 2374+ _CC_SUITE=14 2375+ MSVC_C_RUNTIME_DLL=vcruntime140.dll 2376+ MSVC_CXX_RUNTIME_DLL=msvcp140.dll 2377+ 2378+ # -Zc:sizedDealloc- disables C++14 global sized deallocation (see bug 1160146) 2379+ CXXFLAGS="$CXXFLAGS -Zc:sizedDealloc-" 2380+ 2381+ 2382+ 2383+ 2384+ # Check linker version, except in lld builds 2385+ case "$LINKER" in 2386+ *lld*) 2387+ ;; 2388+ *) 2389+ _LD_FULL_VERSION=`"${LINKER}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"` 2390+ _LD_MAJOR_VERSION=`echo ${_LD_FULL_VERSION} | $AWK -F\. '{ print $1 }'` 2391+ if test "$_LD_MAJOR_VERSION" != "$_CC_SUITE"; then 2392+ { echo "configure: error: The linker major version, $_LD_FULL_VERSION, does not match the compiler suite version, $_CC_SUITE." 1>&2; echo "configure: error: The linker major version, $_LD_FULL_VERSION, does not match the compiler suite version, $_CC_SUITE." 1>&5; exit 1; } 2393+ fi 2394+ ;; 2395+ esac 2396+ 2397+ INCREMENTAL_LINKER=1 2398+ 2399+ unset _MSVC_VER_FILTER 2400+ 2401+ CFLAGS="$CFLAGS -D_HAS_EXCEPTIONS=0" 2402+ CXXFLAGS="$CXXFLAGS -D_HAS_EXCEPTIONS=0" 2403+ else 2404+ # Check w32api version 2405+ _W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'` 2406+ _W32API_MINOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $2 }'` 2407+ echo $ac_n "checking for w32api version >= $W32API_VERSION""... $ac_c" 1>&6 2408+echo "configure:2392: checking for w32api version >= $W32API_VERSION" >&5 2409+ cat > conftest.$ac_ext <<EOF 2410+#line 2394 "configure" 2411+#include "confdefs.h" 2412+#include <w32api.h> 2413+int main() { 2414+#if (__W32API_MAJOR_VERSION < $_W32API_MAJOR_VERSION) || \ 2415+ (__W32API_MAJOR_VERSION == $_W32API_MAJOR_VERSION && \ 2416+ __W32API_MINOR_VERSION < $_W32API_MINOR_VERSION) 2417+ #error "test failed." 2418+ #endif 2419+ 2420+; return 0; } 2421+EOF 2422+if { (eval echo configure:2406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2423+ rm -rf conftest* 2424+ res=yes 2425+else 2426+ echo "configure: failed program was:" >&5 2427+ cat conftest.$ac_ext >&5 2428+ rm -rf conftest* 2429+ res=no 2430+fi 2431+rm -f conftest* 2432+ echo "$ac_t""$res" 1>&6 2433+ if test "$res" != "yes"; then 2434+ { echo "configure: error: w32api version $W32API_VERSION or higher required." 1>&2; echo "configure: error: w32api version $W32API_VERSION or higher required." 1>&5; exit 1; } 2435+ fi 2436+ fi # !GNU_CC 2437+ 2438+ cat >> confdefs.pytmp <<EOF 2439+ (''' WINVER ''', r''' 0x$WINVER ''') 2440+EOF 2441+cat >> confdefs.h <<EOF 2442+#define WINVER 0x$WINVER 2443+EOF 2444+ 2445+ cat >> confdefs.pytmp <<EOF 2446+ (''' _WIN32_WINNT ''', r''' 0x$WINVER ''') 2447+EOF 2448+cat >> confdefs.h <<EOF 2449+#define _WIN32_WINNT 0x$WINVER 2450+EOF 2451+ 2452+ # Require OS features provided by IE 8.0 (Win7) 2453+ cat >> confdefs.pytmp <<EOF 2454+ (''' _WIN32_IE ''', r''' 0x0800 ''') 2455+EOF 2456+cat >> confdefs.h <<EOF 2457+#define _WIN32_IE 0x0800 2458+EOF 2459+ 2460+ 2461+ ;; 2462+esac 2463+ 2464+if test -n "$_WIN32_MSVC"; then 2465+ SKIP_PATH_CHECKS=1 2466+ SKIP_COMPILER_CHECKS=1 2467+ SKIP_LIBRARY_CHECKS=1 2468+ 2469+ # Since we're skipping compiler and library checks, hard-code 2470+ # some facts here. 2471+ 2472+ # Common to all MSVC environments: 2473+ 2474+ cat >> confdefs.pytmp <<\EOF 2475+ (''' HAVE_LOCALECONV ''', ' 1 ') 2476+EOF 2477+cat >> confdefs.h <<\EOF 2478+#define HAVE_LOCALECONV 1 2479+EOF 2480+ 2481+ for ac_func in _getc_nolock 2482+do 2483+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2484+echo "configure:2468: checking for $ac_func" >&5 2485+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2486+ echo $ac_n "(cached) $ac_c" 1>&6 2487+else 2488+ cat > conftest.$ac_ext <<EOF 2489+#line 2473 "configure" 2490+#define $ac_func innocuous_$ac_func 2491+#include "confdefs.h" 2492+#undef $ac_func 2493+/* System header to define __stub macros and hopefully few prototypes, 2494+ which can conflict with char $ac_func(); below. */ 2495+#define $ac_func innocuous_$ac_func 2496+#include <assert.h> 2497+#undef $ac_func 2498+/* Override any gcc2 internal prototype to avoid an error. */ 2499+/* We use char because int might match the return type of a gcc2 2500+ builtin and then its argument prototype would still apply. */ 2501+char $ac_func(); 2502+ 2503+int main() { 2504+ 2505+/* The GNU C library defines this for functions which it implements 2506+ to always fail with ENOSYS. Some functions are actually named 2507+ something starting with __ and the normal name is an alias. */ 2508+#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2509+choke me 2510+#else 2511+$ac_func(); 2512+#endif 2513+ 2514+; return 0; } 2515+EOF 2516+if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2517+ rm -rf conftest* 2518+ eval "ac_cv_func_$ac_func=yes" 2519+else 2520+ echo "configure: failed program was:" >&5 2521+ cat conftest.$ac_ext >&5 2522+ rm -rf conftest* 2523+ eval "ac_cv_func_$ac_func=no" 2524+fi 2525+rm -f conftest* 2526+fi 2527+ 2528+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2529+ echo "$ac_t""yes" 1>&6 2530+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2531+ cat >> confdefs.pytmp <<EOF 2532+ (''' $ac_tr_func ''', ' 1 ') 2533+EOF 2534+cat >> confdefs.h <<EOF 2535+#define $ac_tr_func 1 2536+EOF 2537+ 2538+else 2539+ echo "$ac_t""no" 1>&6 2540+fi 2541+done 2542+ 2543+fi 2544+ 2545+fi # COMPILE_ENVIRONMENT 2546+ 2547+# Check to see if we are running in a broken QEMU scratchbox. 2548+# We know that anything below 1.0.16 is broken. 2549+for ac_prog in sb-conf ve 2550+do 2551+# Extract the first word of "$ac_prog", so it can be a program name with args. 2552+set dummy $ac_prog; ac_word=$2 2553+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2554+echo "configure:2538: checking for $ac_word" >&5 2555+if eval "test \"`echo '$''{'ac_cv_prog_SBCONF'+set}'`\" = set"; then 2556+ echo $ac_n "(cached) $ac_c" 1>&6 2557+else 2558+ if test -n "$SBCONF"; then 2559+ ac_cv_prog_SBCONF="$SBCONF" # Let the user override the test. 2560+else 2561+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2562+ ac_dummy="$PATH" 2563+ for ac_dir in $ac_dummy; do 2564+ test -z "$ac_dir" && ac_dir=. 2565+ if test -f $ac_dir/$ac_word; then 2566+ ac_cv_prog_SBCONF="$ac_prog" 2567+ break 2568+ fi 2569+ done 2570+ IFS="$ac_save_ifs" 2571+fi 2572+fi 2573+SBCONF="$ac_cv_prog_SBCONF" 2574+if test -n "$SBCONF"; then 2575+ echo "$ac_t""$SBCONF" 1>&6 2576+else 2577+ echo "$ac_t""no" 1>&6 2578+fi 2579+ 2580+test -n "$SBCONF" && break 2581+done 2582+test -n "$SBCONF" || SBCONF="""" 2583+ 2584+if test -n "$SBCONF"; then 2585+ _sb_version=`$SBCONF ve` 2586+ _sb_version_major=`echo $_sb_version | cut -f1 -d.` 2587+ _sb_version_minor=`echo $_sb_version | cut -f2 -d.` 2588+ _sb_version_point=`echo $_sb_version | cut -f3 -d.` 2589+ if test $_sb_version_major -eq 1 -a $_sb_version_minor -eq 0 -a $_sb_version_point -le 16; then 2590+ QEMU_CANT_RUN_JS_SHELL=1 2591+ fi 2592+fi 2593+ 2594+ 2595+ 2596+ 2597+ 2598+if test "$COMPILE_ENVIRONMENT"; then 2599+ 2600+ 2601+ 2602+# If we find X, set shell vars x_includes and x_libraries to the 2603+# paths, otherwise set no_x=yes. 2604+# Uses ac_ vars as temps to allow command line to override cache and checks. 2605+# --without-x overrides everything else, but does not touch the cache. 2606+echo $ac_n "checking for X""... $ac_c" 1>&6 2607+echo "configure:2591: checking for X" >&5 2608+ 2609+# Check whether --with-x or --without-x was given. 2610+if test "${with_x+set}" = set; then 2611+ withval="$with_x" 2612+ : 2613+fi 2614+ 2615+# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 2616+if test "x$with_x" = xno; then 2617+ # The user explicitly disabled X. 2618+ have_x=disabled 2619+else 2620+ if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 2621+ # Both variables are already set. 2622+ have_x=yes 2623+ else 2624+if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 2625+ echo $ac_n "(cached) $ac_c" 1>&6 2626+else 2627+ # One or both of the vars are not set, and there is no cached value. 2628+ac_x_includes=NO ac_x_libraries=NO 2629+rm -fr conftestdir 2630+if mkdir conftestdir; then 2631+ cd conftestdir 2632+ # Make sure to not put "make" in the Imakefile rules, since we grep it out. 2633+ cat > Imakefile <<'EOF' 2634+acfindx: 2635+ @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 2636+EOF 2637+ if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 2638+ # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2639+ eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 2640+ # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 2641+ for ac_extension in a so sl; do 2642+ if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 2643+ test -f $ac_im_libdir/libX11.$ac_extension; then 2644+ ac_im_usrlibdir=$ac_im_libdir; break 2645+ fi 2646+ done 2647+ # Screen out bogus values from the imake configuration. They are 2648+ # bogus both because they are the default anyway, and because 2649+ # using them would break gcc on systems where it needs fixed includes. 2650+ case "$ac_im_incroot" in 2651+ /usr/include) ;; 2652+ *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 2653+ esac 2654+ case "$ac_im_usrlibdir" in 2655+ /usr/lib | /lib) ;; 2656+ *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 2657+ esac 2658+ fi 2659+ cd .. 2660+ rm -fr conftestdir 2661+fi 2662+ 2663+if test "$ac_x_includes" = NO; then 2664+ # Guess where to find include files, by looking for this one X11 .h file. 2665+ test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 2666+ 2667+ # First, try using that file with no special directory specified. 2668+cat > conftest.$ac_ext <<EOF 2669+#line 2653 "configure" 2670+#include "confdefs.h" 2671+#include <$x_direct_test_include> 2672+EOF 2673+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2674+{ (eval echo configure:2658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2675+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2676+if test -z "$ac_err"; then 2677+ rm -rf conftest* 2678+ # We can compile using X headers with no special include directory. 2679+ac_x_includes= 2680+else 2681+ echo "$ac_err" >&5 2682+ echo "configure: failed program was:" >&5 2683+ cat conftest.$ac_ext >&5 2684+ rm -rf conftest* 2685+ # Look for the header file in a standard set of common directories. 2686+# Check X11 before X11Rn because it is often a symlink to the current release. 2687+ for ac_dir in \ 2688+ /usr/X11/include \ 2689+ /usr/X11R6/include \ 2690+ /usr/X11R5/include \ 2691+ /usr/X11R4/include \ 2692+ \ 2693+ /usr/include/X11 \ 2694+ /usr/include/X11R6 \ 2695+ /usr/include/X11R5 \ 2696+ /usr/include/X11R4 \ 2697+ \ 2698+ /usr/local/X11/include \ 2699+ /usr/local/X11R6/include \ 2700+ /usr/local/X11R5/include \ 2701+ /usr/local/X11R4/include \ 2702+ \ 2703+ /usr/local/include/X11 \ 2704+ /usr/local/include/X11R6 \ 2705+ /usr/local/include/X11R5 \ 2706+ /usr/local/include/X11R4 \ 2707+ \ 2708+ /usr/X386/include \ 2709+ /usr/x386/include \ 2710+ /usr/XFree86/include/X11 \ 2711+ \ 2712+ /usr/include \ 2713+ /usr/local/include \ 2714+ /usr/unsupported/include \ 2715+ /usr/athena/include \ 2716+ /usr/local/x11r5/include \ 2717+ /usr/lpp/Xamples/include \ 2718+ \ 2719+ /usr/openwin/include \ 2720+ /usr/openwin/share/include \ 2721+ ; \ 2722+ do 2723+ if test -r "$ac_dir/$x_direct_test_include"; then 2724+ ac_x_includes=$ac_dir 2725+ break 2726+ fi 2727+ done 2728+fi 2729+rm -f conftest* 2730+fi # $ac_x_includes = NO 2731+ 2732+if test "$ac_x_libraries" = NO; then 2733+ # Check for the libraries. 2734+ 2735+ test -z "$x_direct_test_library" && x_direct_test_library=Xt 2736+ test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc 2737+ 2738+ # See if we find them without any special options. 2739+ # Don't add to $LIBS permanently. 2740+ ac_save_LIBS="$LIBS" 2741+ LIBS="-l$x_direct_test_library $LIBS" 2742+cat > conftest.$ac_ext <<EOF 2743+#line 2727 "configure" 2744+#include "confdefs.h" 2745+ 2746+int main() { 2747+${x_direct_test_function}() 2748+; return 0; } 2749+EOF 2750+if { (eval echo configure:2734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2751+ rm -rf conftest* 2752+ LIBS="$ac_save_LIBS" 2753+# We can link X programs with no special library path. 2754+ac_x_libraries= 2755+else 2756+ echo "configure: failed program was:" >&5 2757+ cat conftest.$ac_ext >&5 2758+ rm -rf conftest* 2759+ LIBS="$ac_save_LIBS" 2760+# First see if replacing the include by lib works. 2761+# Check X11 before X11Rn because it is often a symlink to the current release. 2762+for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 2763+ /usr/X11/lib \ 2764+ /usr/X11R6/lib \ 2765+ /usr/X11R5/lib \ 2766+ /usr/X11R4/lib \ 2767+ \ 2768+ /usr/lib/X11 \ 2769+ /usr/lib/X11R6 \ 2770+ /usr/lib/X11R5 \ 2771+ /usr/lib/X11R4 \ 2772+ \ 2773+ /usr/local/X11/lib \ 2774+ /usr/local/X11R6/lib \ 2775+ /usr/local/X11R5/lib \ 2776+ /usr/local/X11R4/lib \ 2777+ \ 2778+ /usr/local/lib/X11 \ 2779+ /usr/local/lib/X11R6 \ 2780+ /usr/local/lib/X11R5 \ 2781+ /usr/local/lib/X11R4 \ 2782+ \ 2783+ /usr/X386/lib \ 2784+ /usr/x386/lib \ 2785+ /usr/XFree86/lib/X11 \ 2786+ \ 2787+ /usr/lib \ 2788+ /usr/local/lib \ 2789+ /usr/unsupported/lib \ 2790+ /usr/athena/lib \ 2791+ /usr/local/x11r5/lib \ 2792+ /usr/lpp/Xamples/lib \ 2793+ /lib/usr/lib/X11 \ 2794+ \ 2795+ /usr/openwin/lib \ 2796+ /usr/openwin/share/lib \ 2797+ ; \ 2798+do 2799+ for ac_extension in a so sl; do 2800+ if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 2801+ ac_x_libraries=$ac_dir 2802+ break 2 2803+ fi 2804+ done 2805+done 2806+fi 2807+rm -f conftest* 2808+fi # $ac_x_libraries = NO 2809+ 2810+if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 2811+ # Didn't find X anywhere. Cache the known absence of X. 2812+ ac_cv_have_x="have_x=no" 2813+else 2814+ # Record where we found X for the cache. 2815+ ac_cv_have_x="have_x=yes \ 2816+ ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 2817+fi 2818+fi 2819+ fi 2820+ eval "$ac_cv_have_x" 2821+fi # $with_x != no 2822+ 2823+if test "$have_x" != yes; then 2824+ echo "$ac_t""$have_x" 1>&6 2825+ no_x=yes 2826+else 2827+ # If each of the values was on the command line, it overrides each guess. 2828+ test "x$x_includes" = xNONE && x_includes=$ac_x_includes 2829+ test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 2830+ # Update the cache value to reflect the command line values. 2831+ ac_cv_have_x="have_x=yes \ 2832+ ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 2833+ echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 2834+fi 2835+ 2836+if test "$no_x" = yes; then 2837+ # Not all programs may use this symbol, but it does not hurt to define it. 2838+ cat >> confdefs.pytmp <<\EOF 2839+ (''' X_DISPLAY_MISSING ''', ' 1 ') 2840+EOF 2841+cat >> confdefs.h <<\EOF 2842+#define X_DISPLAY_MISSING 1 2843+EOF 2844+ 2845+ X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 2846+else 2847+ if test -n "$x_includes"; then 2848+ X_CFLAGS="$X_CFLAGS -I$x_includes" 2849+ fi 2850+ 2851+ # It would also be nice to do this for all -L options, not just this one. 2852+ if test -n "$x_libraries"; then 2853+ X_LIBS="$X_LIBS -L$x_libraries" 2854+ # For Solaris; some versions of Sun CC require a space after -R and 2855+ # others require no space. Words are not sufficient . . . . 2856+ case "`(uname -sr) 2>/dev/null`" in 2857+ "SunOS 5"*) 2858+ echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 2859+echo "configure:2843: checking whether -R must be followed by a space" >&5 2860+ ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 2861+ cat > conftest.$ac_ext <<EOF 2862+#line 2846 "configure" 2863+#include "confdefs.h" 2864+ 2865+int main() { 2866+ 2867+; return 0; } 2868+EOF 2869+if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2870+ rm -rf conftest* 2871+ ac_R_nospace=yes 2872+else 2873+ echo "configure: failed program was:" >&5 2874+ cat conftest.$ac_ext >&5 2875+ rm -rf conftest* 2876+ ac_R_nospace=no 2877+fi 2878+rm -f conftest* 2879+ if test $ac_R_nospace = yes; then 2880+ echo "$ac_t""no" 1>&6 2881+ X_LIBS="$X_LIBS -R$x_libraries" 2882+ else 2883+ LIBS="$ac_xsave_LIBS -R $x_libraries" 2884+ cat > conftest.$ac_ext <<EOF 2885+#line 2869 "configure" 2886+#include "confdefs.h" 2887+ 2888+int main() { 2889+ 2890+; return 0; } 2891+EOF 2892+if { (eval echo configure:2876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2893+ rm -rf conftest* 2894+ ac_R_space=yes 2895+else 2896+ echo "configure: failed program was:" >&5 2897+ cat conftest.$ac_ext >&5 2898+ rm -rf conftest* 2899+ ac_R_space=no 2900+fi 2901+rm -f conftest* 2902+ if test $ac_R_space = yes; then 2903+ echo "$ac_t""yes" 1>&6 2904+ X_LIBS="$X_LIBS -R $x_libraries" 2905+ else 2906+ echo "$ac_t""neither works" 1>&6 2907+ fi 2908+ fi 2909+ LIBS="$ac_xsave_LIBS" 2910+ esac 2911+ fi 2912+ 2913+ # Check for system-dependent libraries X programs must link with. 2914+ # Do this before checking for the system-independent R6 libraries 2915+ # (-lICE), since we may need -lsocket or whatever for X linking. 2916+ 2917+ if test "$ISC" = yes; then 2918+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 2919+ else 2920+ # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 2921+ # libraries were built with DECnet support. And karl@cs.umb.edu says 2922+ # the Alpha needs dnet_stub (dnet does not exist). 2923+ echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 2924+echo "configure:2908: checking for dnet_ntoa in -ldnet" >&5 2925+ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 2926+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2927+ echo $ac_n "(cached) $ac_c" 1>&6 2928+else 2929+ ac_save_LIBS="$LIBS" 2930+LIBS="-ldnet $LIBS" 2931+cat > conftest.$ac_ext <<EOF 2932+#line 2916 "configure" 2933+#include "confdefs.h" 2934+/* Override any gcc2 internal prototype to avoid an error. */ 2935+/* We use char because int might match the return type of a gcc2 2936+ builtin and then its argument prototype would still apply. */ 2937+char dnet_ntoa(); 2938+ 2939+int main() { 2940+dnet_ntoa() 2941+; return 0; } 2942+EOF 2943+if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2944+ rm -rf conftest* 2945+ eval "ac_cv_lib_$ac_lib_var=yes" 2946+else 2947+ echo "configure: failed program was:" >&5 2948+ cat conftest.$ac_ext >&5 2949+ rm -rf conftest* 2950+ eval "ac_cv_lib_$ac_lib_var=no" 2951+fi 2952+rm -f conftest* 2953+LIBS="$ac_save_LIBS" 2954+ 2955+fi 2956+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2957+ echo "$ac_t""yes" 1>&6 2958+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 2959+else 2960+ echo "$ac_t""no" 1>&6 2961+fi 2962+ 2963+ if test $ac_cv_lib_dnet_dnet_ntoa = no; then 2964+ echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 2965+echo "configure:2949: checking for dnet_ntoa in -ldnet_stub" >&5 2966+ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 2967+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2968+ echo $ac_n "(cached) $ac_c" 1>&6 2969+else 2970+ ac_save_LIBS="$LIBS" 2971+LIBS="-ldnet_stub $LIBS" 2972+cat > conftest.$ac_ext <<EOF 2973+#line 2957 "configure" 2974+#include "confdefs.h" 2975+/* Override any gcc2 internal prototype to avoid an error. */ 2976+/* We use char because int might match the return type of a gcc2 2977+ builtin and then its argument prototype would still apply. */ 2978+char dnet_ntoa(); 2979+ 2980+int main() { 2981+dnet_ntoa() 2982+; return 0; } 2983+EOF 2984+if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2985+ rm -rf conftest* 2986+ eval "ac_cv_lib_$ac_lib_var=yes" 2987+else 2988+ echo "configure: failed program was:" >&5 2989+ cat conftest.$ac_ext >&5 2990+ rm -rf conftest* 2991+ eval "ac_cv_lib_$ac_lib_var=no" 2992+fi 2993+rm -f conftest* 2994+LIBS="$ac_save_LIBS" 2995+ 2996+fi 2997+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2998+ echo "$ac_t""yes" 1>&6 2999+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 3000+else 3001+ echo "$ac_t""no" 1>&6 3002+fi 3003+ 3004+ fi 3005+ 3006+ # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 3007+ # to get the SysV transport functions. 3008+ # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 3009+ # needs -lnsl. 3010+ # The nsl library prevents programs from opening the X display 3011+ # on Irix 5.2, according to dickey@clark.net. 3012+ echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 3013+echo "configure:2997: checking for gethostbyname" >&5 3014+if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 3015+ echo $ac_n "(cached) $ac_c" 1>&6 3016+else 3017+ cat > conftest.$ac_ext <<EOF 3018+#line 3002 "configure" 3019+#define gethostbyname innocuous_gethostbyname 3020+#include "confdefs.h" 3021+#undef gethostbyname 3022+/* System header to define __stub macros and hopefully few prototypes, 3023+ which can conflict with char gethostbyname(); below. */ 3024+#define gethostbyname innocuous_gethostbyname 3025+#include <assert.h> 3026+#undef gethostbyname 3027+/* Override any gcc2 internal prototype to avoid an error. */ 3028+/* We use char because int might match the return type of a gcc2 3029+ builtin and then its argument prototype would still apply. */ 3030+char gethostbyname(); 3031+ 3032+int main() { 3033+ 3034+/* The GNU C library defines this for functions which it implements 3035+ to always fail with ENOSYS. Some functions are actually named 3036+ something starting with __ and the normal name is an alias. */ 3037+#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 3038+choke me 3039+#else 3040+gethostbyname(); 3041+#endif 3042+ 3043+; return 0; } 3044+EOF 3045+if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3046+ rm -rf conftest* 3047+ eval "ac_cv_func_gethostbyname=yes" 3048+else 3049+ echo "configure: failed program was:" >&5 3050+ cat conftest.$ac_ext >&5 3051+ rm -rf conftest* 3052+ eval "ac_cv_func_gethostbyname=no" 3053+fi 3054+rm -f conftest* 3055+fi 3056+ 3057+if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 3058+ echo "$ac_t""yes" 1>&6 3059+ : 3060+else 3061+ echo "$ac_t""no" 1>&6 3062+fi 3063+ 3064+ if test $ac_cv_func_gethostbyname = no; then 3065+ echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 3066+echo "configure:3050: checking for gethostbyname in -lnsl" >&5 3067+ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 3068+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3069+ echo $ac_n "(cached) $ac_c" 1>&6 3070+else 3071+ ac_save_LIBS="$LIBS" 3072+LIBS="-lnsl $LIBS" 3073+cat > conftest.$ac_ext <<EOF 3074+#line 3058 "configure" 3075+#include "confdefs.h" 3076+/* Override any gcc2 internal prototype to avoid an error. */ 3077+/* We use char because int might match the return type of a gcc2 3078+ builtin and then its argument prototype would still apply. */ 3079+char gethostbyname(); 3080+ 3081+int main() { 3082+gethostbyname() 3083+; return 0; } 3084+EOF 3085+if { (eval echo configure:3069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3086+ rm -rf conftest* 3087+ eval "ac_cv_lib_$ac_lib_var=yes" 3088+else 3089+ echo "configure: failed program was:" >&5 3090+ cat conftest.$ac_ext >&5 3091+ rm -rf conftest* 3092+ eval "ac_cv_lib_$ac_lib_var=no" 3093+fi 3094+rm -f conftest* 3095+LIBS="$ac_save_LIBS" 3096+ 3097+fi 3098+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3099+ echo "$ac_t""yes" 1>&6 3100+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 3101+else 3102+ echo "$ac_t""no" 1>&6 3103+fi 3104+ 3105+ fi 3106+ 3107+ # lieder@skyler.mavd.honeywell.com says without -lsocket, 3108+ # socket/setsockopt and other routines are undefined under SCO ODT 3109+ # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 3110+ # on later versions), says simon@lia.di.epfl.ch: it contains 3111+ # gethostby* variants that don't use the nameserver (or something). 3112+ # -lsocket must be given before -lnsl if both are needed. 3113+ # We assume that if connect needs -lnsl, so does gethostbyname. 3114+ echo $ac_n "checking for connect""... $ac_c" 1>&6 3115+echo "configure:3099: checking for connect" >&5 3116+if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 3117+ echo $ac_n "(cached) $ac_c" 1>&6 3118+else 3119+ cat > conftest.$ac_ext <<EOF 3120+#line 3104 "configure" 3121+#define connect innocuous_connect 3122+#include "confdefs.h" 3123+#undef connect 3124+/* System header to define __stub macros and hopefully few prototypes, 3125+ which can conflict with char connect(); below. */ 3126+#define connect innocuous_connect 3127+#include <assert.h> 3128+#undef connect 3129+/* Override any gcc2 internal prototype to avoid an error. */ 3130+/* We use char because int might match the return type of a gcc2 3131+ builtin and then its argument prototype would still apply. */ 3132+char connect(); 3133+ 3134+int main() { 3135+ 3136+/* The GNU C library defines this for functions which it implements 3137+ to always fail with ENOSYS. Some functions are actually named 3138+ something starting with __ and the normal name is an alias. */ 3139+#if defined (__stub_connect) || defined (__stub___connect) 3140+choke me 3141+#else 3142+connect(); 3143+#endif 3144+ 3145+; return 0; } 3146+EOF 3147+if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3148+ rm -rf conftest* 3149+ eval "ac_cv_func_connect=yes" 3150+else 3151+ echo "configure: failed program was:" >&5 3152+ cat conftest.$ac_ext >&5 3153+ rm -rf conftest* 3154+ eval "ac_cv_func_connect=no" 3155+fi 3156+rm -f conftest* 3157+fi 3158+ 3159+if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 3160+ echo "$ac_t""yes" 1>&6 3161+ : 3162+else 3163+ echo "$ac_t""no" 1>&6 3164+fi 3165+ 3166+ if test $ac_cv_func_connect = no; then 3167+ echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 3168+echo "configure:3152: checking for connect in -lsocket" >&5 3169+ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 3170+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3171+ echo $ac_n "(cached) $ac_c" 1>&6 3172+else 3173+ ac_save_LIBS="$LIBS" 3174+LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 3175+cat > conftest.$ac_ext <<EOF 3176+#line 3160 "configure" 3177+#include "confdefs.h" 3178+/* Override any gcc2 internal prototype to avoid an error. */ 3179+/* We use char because int might match the return type of a gcc2 3180+ builtin and then its argument prototype would still apply. */ 3181+char connect(); 3182+ 3183+int main() { 3184+connect() 3185+; return 0; } 3186+EOF 3187+if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3188+ rm -rf conftest* 3189+ eval "ac_cv_lib_$ac_lib_var=yes" 3190+else 3191+ echo "configure: failed program was:" >&5 3192+ cat conftest.$ac_ext >&5 3193+ rm -rf conftest* 3194+ eval "ac_cv_lib_$ac_lib_var=no" 3195+fi 3196+rm -f conftest* 3197+LIBS="$ac_save_LIBS" 3198+ 3199+fi 3200+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3201+ echo "$ac_t""yes" 1>&6 3202+ X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 3203+else 3204+ echo "$ac_t""no" 1>&6 3205+fi 3206+ 3207+ fi 3208+ 3209+ # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 3210+ echo $ac_n "checking for remove""... $ac_c" 1>&6 3211+echo "configure:3195: checking for remove" >&5 3212+if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 3213+ echo $ac_n "(cached) $ac_c" 1>&6 3214+else 3215+ cat > conftest.$ac_ext <<EOF 3216+#line 3200 "configure" 3217+#define remove innocuous_remove 3218+#include "confdefs.h" 3219+#undef remove 3220+/* System header to define __stub macros and hopefully few prototypes, 3221+ which can conflict with char remove(); below. */ 3222+#define remove innocuous_remove 3223+#include <assert.h> 3224+#undef remove 3225+/* Override any gcc2 internal prototype to avoid an error. */ 3226+/* We use char because int might match the return type of a gcc2 3227+ builtin and then its argument prototype would still apply. */ 3228+char remove(); 3229+ 3230+int main() { 3231+ 3232+/* The GNU C library defines this for functions which it implements 3233+ to always fail with ENOSYS. Some functions are actually named 3234+ something starting with __ and the normal name is an alias. */ 3235+#if defined (__stub_remove) || defined (__stub___remove) 3236+choke me 3237+#else 3238+remove(); 3239+#endif 3240+ 3241+; return 0; } 3242+EOF 3243+if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3244+ rm -rf conftest* 3245+ eval "ac_cv_func_remove=yes" 3246+else 3247+ echo "configure: failed program was:" >&5 3248+ cat conftest.$ac_ext >&5 3249+ rm -rf conftest* 3250+ eval "ac_cv_func_remove=no" 3251+fi 3252+rm -f conftest* 3253+fi 3254+ 3255+if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 3256+ echo "$ac_t""yes" 1>&6 3257+ : 3258+else 3259+ echo "$ac_t""no" 1>&6 3260+fi 3261+ 3262+ if test $ac_cv_func_remove = no; then 3263+ echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 3264+echo "configure:3248: checking for remove in -lposix" >&5 3265+ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 3266+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3267+ echo $ac_n "(cached) $ac_c" 1>&6 3268+else 3269+ ac_save_LIBS="$LIBS" 3270+LIBS="-lposix $LIBS" 3271+cat > conftest.$ac_ext <<EOF 3272+#line 3256 "configure" 3273+#include "confdefs.h" 3274+/* Override any gcc2 internal prototype to avoid an error. */ 3275+/* We use char because int might match the return type of a gcc2 3276+ builtin and then its argument prototype would still apply. */ 3277+char remove(); 3278+ 3279+int main() { 3280+remove() 3281+; return 0; } 3282+EOF 3283+if { (eval echo configure:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3284+ rm -rf conftest* 3285+ eval "ac_cv_lib_$ac_lib_var=yes" 3286+else 3287+ echo "configure: failed program was:" >&5 3288+ cat conftest.$ac_ext >&5 3289+ rm -rf conftest* 3290+ eval "ac_cv_lib_$ac_lib_var=no" 3291+fi 3292+rm -f conftest* 3293+LIBS="$ac_save_LIBS" 3294+ 3295+fi 3296+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3297+ echo "$ac_t""yes" 1>&6 3298+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 3299+else 3300+ echo "$ac_t""no" 1>&6 3301+fi 3302+ 3303+ fi 3304+ 3305+ # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 3306+ echo $ac_n "checking for shmat""... $ac_c" 1>&6 3307+echo "configure:3291: checking for shmat" >&5 3308+if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 3309+ echo $ac_n "(cached) $ac_c" 1>&6 3310+else 3311+ cat > conftest.$ac_ext <<EOF 3312+#line 3296 "configure" 3313+#define shmat innocuous_shmat 3314+#include "confdefs.h" 3315+#undef shmat 3316+/* System header to define __stub macros and hopefully few prototypes, 3317+ which can conflict with char shmat(); below. */ 3318+#define shmat innocuous_shmat 3319+#include <assert.h> 3320+#undef shmat 3321+/* Override any gcc2 internal prototype to avoid an error. */ 3322+/* We use char because int might match the return type of a gcc2 3323+ builtin and then its argument prototype would still apply. */ 3324+char shmat(); 3325+ 3326+int main() { 3327+ 3328+/* The GNU C library defines this for functions which it implements 3329+ to always fail with ENOSYS. Some functions are actually named 3330+ something starting with __ and the normal name is an alias. */ 3331+#if defined (__stub_shmat) || defined (__stub___shmat) 3332+choke me 3333+#else 3334+shmat(); 3335+#endif 3336+ 3337+; return 0; } 3338+EOF 3339+if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3340+ rm -rf conftest* 3341+ eval "ac_cv_func_shmat=yes" 3342+else 3343+ echo "configure: failed program was:" >&5 3344+ cat conftest.$ac_ext >&5 3345+ rm -rf conftest* 3346+ eval "ac_cv_func_shmat=no" 3347+fi 3348+rm -f conftest* 3349+fi 3350+ 3351+if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 3352+ echo "$ac_t""yes" 1>&6 3353+ : 3354+else 3355+ echo "$ac_t""no" 1>&6 3356+fi 3357+ 3358+ if test $ac_cv_func_shmat = no; then 3359+ echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 3360+echo "configure:3344: checking for shmat in -lipc" >&5 3361+ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 3362+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3363+ echo $ac_n "(cached) $ac_c" 1>&6 3364+else 3365+ ac_save_LIBS="$LIBS" 3366+LIBS="-lipc $LIBS" 3367+cat > conftest.$ac_ext <<EOF 3368+#line 3352 "configure" 3369+#include "confdefs.h" 3370+/* Override any gcc2 internal prototype to avoid an error. */ 3371+/* We use char because int might match the return type of a gcc2 3372+ builtin and then its argument prototype would still apply. */ 3373+char shmat(); 3374+ 3375+int main() { 3376+shmat() 3377+; return 0; } 3378+EOF 3379+if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3380+ rm -rf conftest* 3381+ eval "ac_cv_lib_$ac_lib_var=yes" 3382+else 3383+ echo "configure: failed program was:" >&5 3384+ cat conftest.$ac_ext >&5 3385+ rm -rf conftest* 3386+ eval "ac_cv_lib_$ac_lib_var=no" 3387+fi 3388+rm -f conftest* 3389+LIBS="$ac_save_LIBS" 3390+ 3391+fi 3392+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3393+ echo "$ac_t""yes" 1>&6 3394+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 3395+else 3396+ echo "$ac_t""no" 1>&6 3397+fi 3398+ 3399+ fi 3400+ fi 3401+ 3402+ # Check for libraries that X11R6 Xt/Xaw programs need. 3403+ ac_save_LDFLAGS="$LDFLAGS" 3404+ test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 3405+ # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 3406+ # check for ICE first), but we must link in the order -lSM -lICE or 3407+ # we get undefined symbols. So assume we have SM if we have ICE. 3408+ # These have to be linked with before -lX11, unlike the other 3409+ # libraries we check for below, so use a different variable. 3410+ # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 3411+ echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 3412+echo "configure:3396: checking for IceConnectionNumber in -lICE" >&5 3413+ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 3414+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3415+ echo $ac_n "(cached) $ac_c" 1>&6 3416+else 3417+ ac_save_LIBS="$LIBS" 3418+LIBS="-lICE $X_EXTRA_LIBS $LIBS" 3419+cat > conftest.$ac_ext <<EOF 3420+#line 3404 "configure" 3421+#include "confdefs.h" 3422+/* Override any gcc2 internal prototype to avoid an error. */ 3423+/* We use char because int might match the return type of a gcc2 3424+ builtin and then its argument prototype would still apply. */ 3425+char IceConnectionNumber(); 3426+ 3427+int main() { 3428+IceConnectionNumber() 3429+; return 0; } 3430+EOF 3431+if { (eval echo configure:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3432+ rm -rf conftest* 3433+ eval "ac_cv_lib_$ac_lib_var=yes" 3434+else 3435+ echo "configure: failed program was:" >&5 3436+ cat conftest.$ac_ext >&5 3437+ rm -rf conftest* 3438+ eval "ac_cv_lib_$ac_lib_var=no" 3439+fi 3440+rm -f conftest* 3441+LIBS="$ac_save_LIBS" 3442+ 3443+fi 3444+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3445+ echo "$ac_t""yes" 1>&6 3446+ X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 3447+else 3448+ echo "$ac_t""no" 1>&6 3449+fi 3450+ 3451+ LDFLAGS="$ac_save_LDFLAGS" 3452+ 3453+fi 3454+ 3455+ 3456+XCFLAGS="$X_CFLAGS" 3457+ 3458+fi # COMPILE_ENVIRONMENT 3459+ 3460+# Separate version into components for use in shared object naming etc 3461+ 3462+MOZJS_MAJOR_VERSION=`echo $MOZILLA_VERSION | sed "s|\(^[0-9]*\)\.[0-9]*.*|\1|"` 3463+MOZJS_MINOR_VERSION=`echo $MOZILLA_VERSION | sed "s|^[0-9]*\.\([0-9]*\).*|\1|"` 3464+MOZJS_PATCH_VERSION=`echo $MOZILLA_VERSION | sed "s|^[0-9]*\.[0-9]*[^0-9]*||"` 3465+IS_ALPHA=`echo $MOZILLA_VERSION | grep '[ab]'` 3466+ 3467+JS_SHELL_NAME=js 3468+JS_CONFIG_NAME=js-config 3469+ 3470+ 3471+if test -n "$IS_ALPHA"; then 3472+ 3473+ MOZJS_ALPHA=`echo $MOZILLA_VERSION | sed "s|^[0-9]*\.[0-9\.]*\([^0-9]\).*|\1|"` 3474+ 3475+fi 3476+cat >> confdefs.pytmp <<EOF 3477+ (''' MOZJS_MAJOR_VERSION ''', r''' $MOZJS_MAJOR_VERSION ''') 3478+EOF 3479+cat >> confdefs.h <<EOF 3480+#define MOZJS_MAJOR_VERSION $MOZJS_MAJOR_VERSION 3481+EOF 3482+ 3483+cat >> confdefs.pytmp <<EOF 3484+ (''' MOZJS_MINOR_VERSION ''', r''' $MOZJS_MINOR_VERSION ''') 3485+EOF 3486+cat >> confdefs.h <<EOF 3487+#define MOZJS_MINOR_VERSION $MOZJS_MINOR_VERSION 3488+EOF 3489+ 3490+ 3491+ 3492+ 3493+ 3494+ 3495+ 3496+ 3497+ 3498+MOZ_USER_DIR=".mozilla" 3499+ 3500+MOZ_FIX_LINK_PATHS="-Wl,-rpath-link,${DIST}/bin -Wl,-rpath-link,${prefix}/lib" 3501+ 3502+ 3503+if test -n "$_ARM_FLAGS"; then 3504+ CFLAGS="$CFLAGS $_ARM_FLAGS" 3505+ CXXFLAGS="$CXXFLAGS $_ARM_FLAGS" 3506+ ASFLAGS="$ASFLAGS $_ARM_FLAGS" 3507+ if test -n "$_THUMB_FLAGS"; then 3508+ LDFLAGS="$LDFLAGS $_THUMB_FLAGS" 3509+ fi 3510+fi 3511+ 3512+ 3513+ 3514+ 3515+ 3516+if test "$OS_TARGET" = "Android"; then 3517+ case "${CPU_ARCH}" in 3518+ arm) 3519+ ANDROID_CPU_ARCH=armeabi-v7a 3520+ ;; 3521+ x86) 3522+ ANDROID_CPU_ARCH=x86 3523+ ;; 3524+ x86_64) 3525+ ANDROID_CPU_ARCH=x86_64 3526+ ;; 3527+ aarch64) 3528+ ANDROID_CPU_ARCH=arm64-v8a 3529+ ;; 3530+ esac 3531+ 3532+ 3533+fi 3534+ 3535+ 3536+ 3537+if test "$OS_TARGET" = "Android"; then 3538+ if test -z "$STLPORT_LIBS"; then 3539+ # android-ndk-r8b and later 3540+ cxx_libs="$android_ndk/sources/cxx-stl/llvm-libc++/libs/$ANDROID_CPU_ARCH" 3541+ # NDK r12 removed the arm/thumb library split and just made 3542+ # everything thumb by default. Attempt to compensate. 3543+ if test "$MOZ_THUMB2" = 1 -a -d "$cxx_libs/thumb"; then 3544+ cxx_libs="$cxx_libs/thumb" 3545+ fi 3546+ 3547+ if ! test -e "$cxx_libs/libc++_static.a"; then 3548+ { echo "configure: error: Couldn't find path to llvm-libc++ in the android ndk" 1>&2; echo "configure: error: Couldn't find path to llvm-libc++ in the android ndk" 1>&5; exit 1; } 3549+ fi 3550+ 3551+ STLPORT_LIBS="-L$cxx_libs -lc++_static" 3552+ # NDK r12 split the libc++ runtime libraries into pieces. 3553+ for lib in c++abi unwind android_support; do 3554+ if test -e "$cxx_libs/lib${lib}.a"; then 3555+ STLPORT_LIBS="$STLPORT_LIBS -l${lib}" 3556+ fi 3557+ done 3558+ fi 3559+fi 3560+ 3561+ 3562+ 3563+ 3564+WARNINGS_CFLAGS="$_WARNINGS_CFLAGS" 3565+if test -n "${CLANG_CC}${CLANG_CL}"; then 3566+ WARNINGS_CFLAGS="-Qunused-arguments $WARNINGS_CFLAGS" 3567+ CPPFLAGS="-Qunused-arguments ${CPPFLAGS}" 3568+fi 3569+if test -n "${CLANG_CXX}${CLANG_CL}"; then 3570+ _WARNINGS_CXXFLAGS="-Qunused-arguments ${_WARNINGS_CXXFLAGS}" 3571+fi 3572+ 3573+ 3574+ 3575+if test -n "$MOZ_ASAN"; then 3576+ if test -n "$CLANG_CL"; then 3577+ # Look for the ASan runtime binary 3578+ if test "$CPU_ARCH" = "x86_64"; then 3579+ MOZ_CLANG_RT_ASAN_LIB=clang_rt.asan_dynamic-x86_64.dll 3580+ else 3581+ MOZ_CLANG_RT_ASAN_LIB=clang_rt.asan_dynamic-i386.dll 3582+ fi 3583+ # We use MOZ_PATH_PROG in order to get a Windows style path. 3584+ # Extract the first word of "$MOZ_CLANG_RT_ASAN_LIB", so it can be a program name with args. 3585+set dummy $MOZ_CLANG_RT_ASAN_LIB; ac_word=$2 3586+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3587+echo "configure:3571: checking for $ac_word" >&5 3588+if eval "test \"`echo '$''{'ac_cv_path_MOZ_CLANG_RT_ASAN_LIB_PATH'+set}'`\" = set"; then 3589+ echo $ac_n "(cached) $ac_c" 1>&6 3590+else 3591+ case "$MOZ_CLANG_RT_ASAN_LIB_PATH" in 3592+ /*) 3593+ ac_cv_path_MOZ_CLANG_RT_ASAN_LIB_PATH="$MOZ_CLANG_RT_ASAN_LIB_PATH" # Let the user override the test with a path. 3594+ ;; 3595+ ?:/*) 3596+ ac_cv_path_MOZ_CLANG_RT_ASAN_LIB_PATH="$MOZ_CLANG_RT_ASAN_LIB_PATH" # Let the user override the test with a dos path. 3597+ ;; 3598+ *) 3599+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3600+ ac_dummy="$PATH" 3601+ for ac_dir in $ac_dummy; do 3602+ test -z "$ac_dir" && ac_dir=. 3603+ if test -f $ac_dir/$ac_word; then 3604+ ac_cv_path_MOZ_CLANG_RT_ASAN_LIB_PATH="$ac_dir/$ac_word" 3605+ break 3606+ fi 3607+ done 3608+ IFS="$ac_save_ifs" 3609+ ;; 3610+esac 3611+fi 3612+MOZ_CLANG_RT_ASAN_LIB_PATH="$ac_cv_path_MOZ_CLANG_RT_ASAN_LIB_PATH" 3613+if test -n "$MOZ_CLANG_RT_ASAN_LIB_PATH"; then 3614+ echo "$ac_t""$MOZ_CLANG_RT_ASAN_LIB_PATH" 1>&6 3615+else 3616+ echo "$ac_t""no" 1>&6 3617+fi 3618+ 3619+ if test "$msyshost"; then 3620+ case "$MOZ_CLANG_RT_ASAN_LIB_PATH" in 3621+ /*) 3622+ tmp_DIRNAME=`dirname "$MOZ_CLANG_RT_ASAN_LIB_PATH"` 3623+ tmp_BASENAME=`basename "$MOZ_CLANG_RT_ASAN_LIB_PATH"` 3624+ tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` 3625+ MOZ_CLANG_RT_ASAN_LIB_PATH="$tmp_PWD/$tmp_BASENAME" 3626+ if test -e "$MOZ_CLANG_RT_ASAN_LIB_PATH.exe"; then 3627+ MOZ_CLANG_RT_ASAN_LIB_PATH="$MOZ_CLANG_RT_ASAN_LIB_PATH.exe" 3628+ fi 3629+ esac 3630+ fi 3631+ 3632+ if test -z "$MOZ_CLANG_RT_ASAN_LIB_PATH"; then 3633+ { echo "configure: error: Couldn't find $MOZ_CLANG_RT_ASAN_LIB. It should be available in the same location as clang-cl." 1>&2; echo "configure: error: Couldn't find $MOZ_CLANG_RT_ASAN_LIB. It should be available in the same location as clang-cl." 1>&5; exit 1; } 3634+ fi 3635+ 3636+ # Suppressing errors in recompiled code. 3637+ if test "$OS_ARCH" = "WINNT"; then 3638+ CFLAGS="-fsanitize-blacklist=$_topsrcdir/build/sanitizers/asan_blacklist_win.txt $CFLAGS" 3639+ CXXFLAGS="-fsanitize-blacklist=$_topsrcdir/build/sanitizers/asan_blacklist_win.txt $CXXFLAGS" 3640+ fi 3641+ fi 3642+ CFLAGS="-fsanitize=address $CFLAGS" 3643+ CXXFLAGS="-fsanitize=address $CXXFLAGS" 3644+ if test -z "$CLANG_CL"; then 3645+ LDFLAGS="-fsanitize=address -rdynamic $LDFLAGS" 3646+ fi 3647+ cat >> confdefs.pytmp <<\EOF 3648+ (''' MOZ_ASAN ''', ' 1 ') 3649+EOF 3650+cat >> confdefs.h <<\EOF 3651+#define MOZ_ASAN 1 3652+EOF 3653+ 3654+ # Extract the first word of "llvm-symbolizer", so it can be a program name with args. 3655+set dummy llvm-symbolizer; ac_word=$2 3656+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3657+echo "configure:3641: checking for $ac_word" >&5 3658+if eval "test \"`echo '$''{'ac_cv_path_LLVM_SYMBOLIZER'+set}'`\" = set"; then 3659+ echo $ac_n "(cached) $ac_c" 1>&6 3660+else 3661+ case "$LLVM_SYMBOLIZER" in 3662+ /*) 3663+ ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a path. 3664+ ;; 3665+ ?:/*) 3666+ ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a dos path. 3667+ ;; 3668+ *) 3669+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3670+ ac_dummy="$PATH" 3671+ for ac_dir in $ac_dummy; do 3672+ test -z "$ac_dir" && ac_dir=. 3673+ if test -f $ac_dir/$ac_word; then 3674+ ac_cv_path_LLVM_SYMBOLIZER="$ac_dir/$ac_word" 3675+ break 3676+ fi 3677+ done 3678+ IFS="$ac_save_ifs" 3679+ ;; 3680+esac 3681+fi 3682+LLVM_SYMBOLIZER="$ac_cv_path_LLVM_SYMBOLIZER" 3683+if test -n "$LLVM_SYMBOLIZER"; then 3684+ echo "$ac_t""$LLVM_SYMBOLIZER" 1>&6 3685+else 3686+ echo "$ac_t""no" 1>&6 3687+fi 3688+ 3689+ if test "$msyshost"; then 3690+ case "$LLVM_SYMBOLIZER" in 3691+ /*) 3692+ tmp_DIRNAME=`dirname "$LLVM_SYMBOLIZER"` 3693+ tmp_BASENAME=`basename "$LLVM_SYMBOLIZER"` 3694+ tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` 3695+ LLVM_SYMBOLIZER="$tmp_PWD/$tmp_BASENAME" 3696+ if test -e "$LLVM_SYMBOLIZER.exe"; then 3697+ LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER.exe" 3698+ fi 3699+ esac 3700+ fi 3701+ 3702+fi 3703+ 3704+ 3705+# Check whether --enable-memory-sanitizer or --disable-memory-sanitizer was given. 3706+if test "${enable_memory_sanitizer+set}" = set; then 3707+ enableval="$enable_memory_sanitizer" 3708+ if test "$enableval" = "yes"; then 3709+ MOZ_MSAN=1 3710+ elif test "$enableval" = "no"; then 3711+ MOZ_MSAN= 3712+ else 3713+ { echo "configure: error: Option, memory-sanitizer, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, memory-sanitizer, does not take an argument ($enableval)." 1>&5; exit 1; } 3714+ fi 3715+fi 3716+ 3717+if test -n "$MOZ_MSAN"; then 3718+ CFLAGS="-fsanitize=memory -fsanitize-memory-track-origins $CFLAGS" 3719+ CXXFLAGS="-fsanitize=memory -fsanitize-memory-track-origins $CXXFLAGS" 3720+ if test -z "$CLANG_CL"; then 3721+ LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins -rdynamic $LDFLAGS" 3722+ fi 3723+ cat >> confdefs.pytmp <<\EOF 3724+ (''' MOZ_MSAN ''', ' 1 ') 3725+EOF 3726+cat >> confdefs.h <<\EOF 3727+#define MOZ_MSAN 1 3728+EOF 3729+ 3730+ # Extract the first word of "llvm-symbolizer", so it can be a program name with args. 3731+set dummy llvm-symbolizer; ac_word=$2 3732+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3733+echo "configure:3717: checking for $ac_word" >&5 3734+if eval "test \"`echo '$''{'ac_cv_path_LLVM_SYMBOLIZER'+set}'`\" = set"; then 3735+ echo $ac_n "(cached) $ac_c" 1>&6 3736+else 3737+ case "$LLVM_SYMBOLIZER" in 3738+ /*) 3739+ ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a path. 3740+ ;; 3741+ ?:/*) 3742+ ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a dos path. 3743+ ;; 3744+ *) 3745+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3746+ ac_dummy="$PATH" 3747+ for ac_dir in $ac_dummy; do 3748+ test -z "$ac_dir" && ac_dir=. 3749+ if test -f $ac_dir/$ac_word; then 3750+ ac_cv_path_LLVM_SYMBOLIZER="$ac_dir/$ac_word" 3751+ break 3752+ fi 3753+ done 3754+ IFS="$ac_save_ifs" 3755+ ;; 3756+esac 3757+fi 3758+LLVM_SYMBOLIZER="$ac_cv_path_LLVM_SYMBOLIZER" 3759+if test -n "$LLVM_SYMBOLIZER"; then 3760+ echo "$ac_t""$LLVM_SYMBOLIZER" 1>&6 3761+else 3762+ echo "$ac_t""no" 1>&6 3763+fi 3764+ 3765+ if test "$msyshost"; then 3766+ case "$LLVM_SYMBOLIZER" in 3767+ /*) 3768+ tmp_DIRNAME=`dirname "$LLVM_SYMBOLIZER"` 3769+ tmp_BASENAME=`basename "$LLVM_SYMBOLIZER"` 3770+ tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` 3771+ LLVM_SYMBOLIZER="$tmp_PWD/$tmp_BASENAME" 3772+ if test -e "$LLVM_SYMBOLIZER.exe"; then 3773+ LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER.exe" 3774+ fi 3775+ esac 3776+ fi 3777+ 3778+fi 3779+ 3780+ 3781+# Check whether --enable-thread-sanitizer or --disable-thread-sanitizer was given. 3782+if test "${enable_thread_sanitizer+set}" = set; then 3783+ enableval="$enable_thread_sanitizer" 3784+ if test "$enableval" = "yes"; then 3785+ MOZ_TSAN=1 3786+ elif test "$enableval" = "no"; then 3787+ MOZ_TSAN= 3788+ else 3789+ { echo "configure: error: Option, thread-sanitizer, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, thread-sanitizer, does not take an argument ($enableval)." 1>&5; exit 1; } 3790+ fi 3791+fi 3792+ 3793+if test -n "$MOZ_TSAN"; then 3794+ CFLAGS="-fsanitize=thread $CFLAGS" 3795+ CXXFLAGS="-fsanitize=thread $CXXFLAGS" 3796+ if test -z "$CLANG_CL"; then 3797+ LDFLAGS="-fsanitize=thread -rdynamic $LDFLAGS" 3798+ fi 3799+ cat >> confdefs.pytmp <<\EOF 3800+ (''' MOZ_TSAN ''', ' 1 ') 3801+EOF 3802+cat >> confdefs.h <<\EOF 3803+#define MOZ_TSAN 1 3804+EOF 3805+ 3806+ # Extract the first word of "llvm-symbolizer", so it can be a program name with args. 3807+set dummy llvm-symbolizer; ac_word=$2 3808+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3809+echo "configure:3793: checking for $ac_word" >&5 3810+if eval "test \"`echo '$''{'ac_cv_path_LLVM_SYMBOLIZER'+set}'`\" = set"; then 3811+ echo $ac_n "(cached) $ac_c" 1>&6 3812+else 3813+ case "$LLVM_SYMBOLIZER" in 3814+ /*) 3815+ ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a path. 3816+ ;; 3817+ ?:/*) 3818+ ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a dos path. 3819+ ;; 3820+ *) 3821+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3822+ ac_dummy="$PATH" 3823+ for ac_dir in $ac_dummy; do 3824+ test -z "$ac_dir" && ac_dir=. 3825+ if test -f $ac_dir/$ac_word; then 3826+ ac_cv_path_LLVM_SYMBOLIZER="$ac_dir/$ac_word" 3827+ break 3828+ fi 3829+ done 3830+ IFS="$ac_save_ifs" 3831+ ;; 3832+esac 3833+fi 3834+LLVM_SYMBOLIZER="$ac_cv_path_LLVM_SYMBOLIZER" 3835+if test -n "$LLVM_SYMBOLIZER"; then 3836+ echo "$ac_t""$LLVM_SYMBOLIZER" 1>&6 3837+else 3838+ echo "$ac_t""no" 1>&6 3839+fi 3840+ 3841+ if test "$msyshost"; then 3842+ case "$LLVM_SYMBOLIZER" in 3843+ /*) 3844+ tmp_DIRNAME=`dirname "$LLVM_SYMBOLIZER"` 3845+ tmp_BASENAME=`basename "$LLVM_SYMBOLIZER"` 3846+ tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` 3847+ LLVM_SYMBOLIZER="$tmp_PWD/$tmp_BASENAME" 3848+ if test -e "$LLVM_SYMBOLIZER.exe"; then 3849+ LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER.exe" 3850+ fi 3851+ esac 3852+ fi 3853+ 3854+fi 3855+ 3856+ 3857+if test -n "$MOZ_UBSAN_CHECKS"; then 3858+ MOZ_UBSAN=1 3859+ UBSAN_TXT="$_objdir/ubsan_blacklist.txt" 3860+ cat $_topsrcdir/build/sanitizers/ubsan_*_blacklist.txt > $UBSAN_TXT 3861+ UBSAN_FLAGS="-fsanitize=$MOZ_UBSAN_CHECKS -fno-sanitize-recover=$MOZ_UBSAN_CHECKS -fsanitize-blacklist=$UBSAN_TXT" 3862+ CFLAGS="$UBSAN_FLAGS $CFLAGS" 3863+ CXXFLAGS="$UBSAN_FLAGS $CXXFLAGS" 3864+ if test -z "$CLANG_CL"; then 3865+ LDFLAGS="-fsanitize=undefined -rdynamic $LDFLAGS" 3866+ fi 3867+ cat >> confdefs.pytmp <<\EOF 3868+ (''' MOZ_UBSAN ''', ' 1 ') 3869+EOF 3870+cat >> confdefs.h <<\EOF 3871+#define MOZ_UBSAN 1 3872+EOF 3873+ 3874+ # Extract the first word of "llvm-symbolizer", so it can be a program name with args. 3875+set dummy llvm-symbolizer; ac_word=$2 3876+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3877+echo "configure:3861: checking for $ac_word" >&5 3878+if eval "test \"`echo '$''{'ac_cv_path_LLVM_SYMBOLIZER'+set}'`\" = set"; then 3879+ echo $ac_n "(cached) $ac_c" 1>&6 3880+else 3881+ case "$LLVM_SYMBOLIZER" in 3882+ /*) 3883+ ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a path. 3884+ ;; 3885+ ?:/*) 3886+ ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a dos path. 3887+ ;; 3888+ *) 3889+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3890+ ac_dummy="$PATH" 3891+ for ac_dir in $ac_dummy; do 3892+ test -z "$ac_dir" && ac_dir=. 3893+ if test -f $ac_dir/$ac_word; then 3894+ ac_cv_path_LLVM_SYMBOLIZER="$ac_dir/$ac_word" 3895+ break 3896+ fi 3897+ done 3898+ IFS="$ac_save_ifs" 3899+ ;; 3900+esac 3901+fi 3902+LLVM_SYMBOLIZER="$ac_cv_path_LLVM_SYMBOLIZER" 3903+if test -n "$LLVM_SYMBOLIZER"; then 3904+ echo "$ac_t""$LLVM_SYMBOLIZER" 1>&6 3905+else 3906+ echo "$ac_t""no" 1>&6 3907+fi 3908+ 3909+ if test "$msyshost"; then 3910+ case "$LLVM_SYMBOLIZER" in 3911+ /*) 3912+ tmp_DIRNAME=`dirname "$LLVM_SYMBOLIZER"` 3913+ tmp_BASENAME=`basename "$LLVM_SYMBOLIZER"` 3914+ tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` 3915+ LLVM_SYMBOLIZER="$tmp_PWD/$tmp_BASENAME" 3916+ if test -e "$LLVM_SYMBOLIZER.exe"; then 3917+ LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER.exe" 3918+ fi 3919+ esac 3920+ fi 3921+ 3922+fi 3923+ 3924+ 3925+ 3926+# Check whether --enable-signed-overflow-sanitizer or --disable-signed-overflow-sanitizer was given. 3927+if test "${enable_signed_overflow_sanitizer+set}" = set; then 3928+ enableval="$enable_signed_overflow_sanitizer" 3929+ if test "$enableval" = "yes"; then 3930+ MOZ_SIGNED_OVERFLOW_SANITIZE=1 3931+ elif test "$enableval" = "no"; then 3932+ MOZ_SIGNED_OVERFLOW_SANITIZE= 3933+ else 3934+ { echo "configure: error: Option, signed-overflow-sanitizer, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, signed-overflow-sanitizer, does not take an argument ($enableval)." 1>&5; exit 1; } 3935+ fi 3936+fi 3937+ 3938+# Check whether --enable-unsigned-overflow-sanitizer or --disable-unsigned-overflow-sanitizer was given. 3939+if test "${enable_unsigned_overflow_sanitizer+set}" = set; then 3940+ enableval="$enable_unsigned_overflow_sanitizer" 3941+ if test "$enableval" = "yes"; then 3942+ MOZ_UNSIGNED_OVERFLOW_SANITIZE=1 3943+ elif test "$enableval" = "no"; then 3944+ MOZ_UNSIGNED_OVERFLOW_SANITIZE= 3945+ else 3946+ { echo "configure: error: Option, unsigned-overflow-sanitizer, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, unsigned-overflow-sanitizer, does not take an argument ($enableval)." 1>&5; exit 1; } 3947+ fi 3948+fi 3949+ 3950+ 3951+if test -n "$MOZ_SIGNED_OVERFLOW_SANITIZE$MOZ_UNSIGNED_OVERFLOW_SANITIZE"; then 3952+ MOZ_UBSAN=1 3953+ SANITIZER_BLACKLISTS="" 3954+ if test -n "$MOZ_SIGNED_OVERFLOW_SANITIZE"; then 3955+ SANITIZER_BLACKLISTS="-fsanitize-blacklist=$_topsrcdir/build/sanitizers/ubsan_signed_overflow_blacklist.txt $SANITIZER_BLACKLISTS" 3956+ CFLAGS="-fsanitize=signed-integer-overflow $CFLAGS" 3957+ CXXFLAGS="-fsanitize=signed-integer-overflow $CXXFLAGS" 3958+ if test -z "$CLANG_CL"; then 3959+ LDFLAGS="-fsanitize=signed-integer-overflow -rdynamic $LDFLAGS" 3960+ fi 3961+ cat >> confdefs.pytmp <<\EOF 3962+ (''' MOZ_SIGNED_OVERFLOW_SANITIZE ''', ' 1 ') 3963+EOF 3964+cat >> confdefs.h <<\EOF 3965+#define MOZ_SIGNED_OVERFLOW_SANITIZE 1 3966+EOF 3967+ 3968+ fi 3969+ if test -n "$MOZ_UNSIGNED_OVERFLOW_SANITIZE"; then 3970+ SANITIZER_BLACKLISTS="-fsanitize-blacklist=$_topsrcdir/build/sanitizers/ubsan_unsigned_overflow_blacklist.txt $SANITIZER_BLACKLISTS" 3971+ CFLAGS="-fsanitize=unsigned-integer-overflow $CFLAGS" 3972+ CXXFLAGS="-fsanitize=unsigned-integer-overflow $CXXFLAGS" 3973+ if test -z "$CLANG_CL"; then 3974+ LDFLAGS="-fsanitize=unsigned-integer-overflow -rdynamic $LDFLAGS" 3975+ fi 3976+ cat >> confdefs.pytmp <<\EOF 3977+ (''' MOZ_UNSIGNED_OVERFLOW_SANITIZE ''', ' 1 ') 3978+EOF 3979+cat >> confdefs.h <<\EOF 3980+#define MOZ_UNSIGNED_OVERFLOW_SANITIZE 1 3981+EOF 3982+ 3983+ fi 3984+ CFLAGS="$SANITIZER_BLACKLISTS $CFLAGS" 3985+ CXXFLAGS="$SANITIZER_BLACKLISTS $CXXFLAGS" 3986+ cat >> confdefs.pytmp <<\EOF 3987+ (''' MOZ_UBSAN ''', ' 1 ') 3988+EOF 3989+cat >> confdefs.h <<\EOF 3990+#define MOZ_UBSAN 1 3991+EOF 3992+ 3993+ # Extract the first word of "llvm-symbolizer", so it can be a program name with args. 3994+set dummy llvm-symbolizer; ac_word=$2 3995+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3996+echo "configure:3980: checking for $ac_word" >&5 3997+if eval "test \"`echo '$''{'ac_cv_path_LLVM_SYMBOLIZER'+set}'`\" = set"; then 3998+ echo $ac_n "(cached) $ac_c" 1>&6 3999+else 4000+ case "$LLVM_SYMBOLIZER" in 4001+ /*) 4002+ ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a path. 4003+ ;; 4004+ ?:/*) 4005+ ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a dos path. 4006+ ;; 4007+ *) 4008+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4009+ ac_dummy="$PATH" 4010+ for ac_dir in $ac_dummy; do 4011+ test -z "$ac_dir" && ac_dir=. 4012+ if test -f $ac_dir/$ac_word; then 4013+ ac_cv_path_LLVM_SYMBOLIZER="$ac_dir/$ac_word" 4014+ break 4015+ fi 4016+ done 4017+ IFS="$ac_save_ifs" 4018+ ;; 4019+esac 4020+fi 4021+LLVM_SYMBOLIZER="$ac_cv_path_LLVM_SYMBOLIZER" 4022+if test -n "$LLVM_SYMBOLIZER"; then 4023+ echo "$ac_t""$LLVM_SYMBOLIZER" 1>&6 4024+else 4025+ echo "$ac_t""no" 1>&6 4026+fi 4027+ 4028+ if test "$msyshost"; then 4029+ case "$LLVM_SYMBOLIZER" in 4030+ /*) 4031+ tmp_DIRNAME=`dirname "$LLVM_SYMBOLIZER"` 4032+ tmp_BASENAME=`basename "$LLVM_SYMBOLIZER"` 4033+ tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` 4034+ LLVM_SYMBOLIZER="$tmp_PWD/$tmp_BASENAME" 4035+ if test -e "$LLVM_SYMBOLIZER.exe"; then 4036+ LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER.exe" 4037+ fi 4038+ esac 4039+ fi 4040+ 4041+fi 4042+ 4043+ 4044+ 4045+ 4046+if test -n "$LIBFUZZER"; then 4047+ LDFLAGS="$LIBFUZZER_FLAGS -rdynamic $LDFLAGS" 4048+fi 4049+ 4050+# The LLVM symbolizer is used by all sanitizers 4051+ 4052+ 4053+cat > conftest.$ac_ext <<EOF 4054+#line 4038 "configure" 4055+#include "confdefs.h" 4056+ 4057+int main() { 4058+ 4059+; return 0; } 4060+EOF 4061+if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4062+ : 4063+else 4064+ echo "configure: failed program was:" >&5 4065+ cat conftest.$ac_ext >&5 4066+ rm -rf conftest* 4067+ { echo "configure: error: compiler is incompatible with sanitize options" 1>&2; echo "configure: error: compiler is incompatible with sanitize options" 1>&5; exit 1; } 4068+fi 4069+rm -f conftest* 4070+ 4071+ 4072+ 4073+if test "$GNU_CC"; then 4074+ DSO_LDOPTS='-shared' 4075+ if test "$GCC_USE_GNU_LD"; then 4076+ # Some tools like ASan use a runtime library that is only 4077+ # linked against executables, so we must allow undefined 4078+ # symbols for shared objects in some cases. 4079+ if test -z "$MOZ_ASAN$MOZ_MSAN$MOZ_UBSAN$MOZ_TSAN$FUZZING_INTERFACES"; then 4080+ # Don't allow undefined symbols in libraries 4081+ DSO_LDOPTS="$DSO_LDOPTS -Wl,-z,defs" 4082+ fi 4083+ fi 4084+ WARNINGS_AS_ERRORS='-Werror' 4085+ DSO_CFLAGS='' 4086+ 4087+ if test "$OS_ARCH" != "WINNT"; then 4088+ DSO_PIC_CFLAGS='-fPIC' 4089+ ASFLAGS="$ASFLAGS -fPIC" 4090+ fi 4091+ 4092+ echo $ac_n "checking for --noexecstack option to as""... $ac_c" 1>&6 4093+echo "configure:4077: checking for --noexecstack option to as" >&5 4094+ _SAVE_CFLAGS=$CFLAGS 4095+ CFLAGS="$CFLAGS -Wa,--noexecstack" 4096+ cat > conftest.$ac_ext <<EOF 4097+#line 4081 "configure" 4098+#include "confdefs.h" 4099+ 4100+int main() { 4101+ 4102+; return 0; } 4103+EOF 4104+if { (eval echo configure:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4105+ rm -rf conftest* 4106+ echo "$ac_t""yes" 1>&6 4107+ ASFLAGS="$ASFLAGS -Wa,--noexecstack" 4108+else 4109+ echo "configure: failed program was:" >&5 4110+ cat conftest.$ac_ext >&5 4111+ rm -rf conftest* 4112+ echo "$ac_t""no" 1>&6 4113+fi 4114+rm -f conftest* 4115+ CFLAGS=$_SAVE_CFLAGS 4116+ echo $ac_n "checking for -z noexecstack option to ld""... $ac_c" 1>&6 4117+echo "configure:4101: checking for -z noexecstack option to ld" >&5 4118+ _SAVE_LDFLAGS=$LDFLAGS 4119+ LDFLAGS="$LDFLAGS -Wl,-z,noexecstack" 4120+ cat > conftest.$ac_ext <<EOF 4121+#line 4105 "configure" 4122+#include "confdefs.h" 4123+ 4124+int main() { 4125+ 4126+; return 0; } 4127+EOF 4128+if { (eval echo configure:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4129+ rm -rf conftest* 4130+ echo "$ac_t""yes" 1>&6 4131+else 4132+ echo "configure: failed program was:" >&5 4133+ cat conftest.$ac_ext >&5 4134+ rm -rf conftest* 4135+ echo "$ac_t""no" 1>&6 4136+ LDFLAGS=$_SAVE_LDFLAGS 4137+fi 4138+rm -f conftest* 4139+ 4140+ echo $ac_n "checking for -z text option to ld""... $ac_c" 1>&6 4141+echo "configure:4125: checking for -z text option to ld" >&5 4142+ _SAVE_LDFLAGS=$LDFLAGS 4143+ LDFLAGS="$LDFLAGS -Wl,-z,text" 4144+ cat > conftest.$ac_ext <<EOF 4145+#line 4129 "configure" 4146+#include "confdefs.h" 4147+ 4148+int main() { 4149+ 4150+; return 0; } 4151+EOF 4152+if { (eval echo configure:4136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4153+ rm -rf conftest* 4154+ echo "$ac_t""yes" 1>&6 4155+else 4156+ echo "configure: failed program was:" >&5 4157+ cat conftest.$ac_ext >&5 4158+ rm -rf conftest* 4159+ echo "$ac_t""no" 1>&6 4160+ LDFLAGS=$_SAVE_LDFLAGS 4161+fi 4162+rm -f conftest* 4163+ 4164+ echo $ac_n "checking for -z relro option to ld""... $ac_c" 1>&6 4165+echo "configure:4149: checking for -z relro option to ld" >&5 4166+ _SAVE_LDFLAGS=$LDFLAGS 4167+ LDFLAGS="$LDFLAGS -Wl,-z,relro" 4168+ cat > conftest.$ac_ext <<EOF 4169+#line 4153 "configure" 4170+#include "confdefs.h" 4171+ 4172+int main() { 4173+ 4174+; return 0; } 4175+EOF 4176+if { (eval echo configure:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4177+ rm -rf conftest* 4178+ echo "$ac_t""yes" 1>&6 4179+else 4180+ echo "configure: failed program was:" >&5 4181+ cat conftest.$ac_ext >&5 4182+ rm -rf conftest* 4183+ echo "$ac_t""no" 1>&6 4184+ LDFLAGS=$_SAVE_LDFLAGS 4185+fi 4186+rm -f conftest* 4187+ 4188+ echo $ac_n "checking for -z nocopyreloc option to ld""... $ac_c" 1>&6 4189+echo "configure:4173: checking for -z nocopyreloc option to ld" >&5 4190+ _SAVE_LDFLAGS=$LDFLAGS 4191+ LDFLAGS="$LDFLAGS -Wl,-z,nocopyreloc" 4192+ cat > conftest.$ac_ext <<EOF 4193+#line 4177 "configure" 4194+#include "confdefs.h" 4195+ 4196+int main() { 4197+ 4198+; return 0; } 4199+EOF 4200+if { (eval echo configure:4184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4201+ rm -rf conftest* 4202+ echo "$ac_t""yes" 1>&6 4203+else 4204+ echo "configure: failed program was:" >&5 4205+ cat conftest.$ac_ext >&5 4206+ rm -rf conftest* 4207+ echo "$ac_t""no" 1>&6 4208+ LDFLAGS=$_SAVE_LDFLAGS 4209+fi 4210+rm -f conftest* 4211+ 4212+ echo $ac_n "checking for -Bsymbolic-functions option to ld""... $ac_c" 1>&6 4213+echo "configure:4197: checking for -Bsymbolic-functions option to ld" >&5 4214+ _SAVE_LDFLAGS=$LDFLAGS 4215+ LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions" 4216+ cat > conftest.$ac_ext <<EOF 4217+#line 4201 "configure" 4218+#include "confdefs.h" 4219+ 4220+int main() { 4221+ 4222+; return 0; } 4223+EOF 4224+if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4225+ rm -rf conftest* 4226+ echo "$ac_t""yes" 1>&6 4227+else 4228+ echo "configure: failed program was:" >&5 4229+ cat conftest.$ac_ext >&5 4230+ rm -rf conftest* 4231+ echo "$ac_t""no" 1>&6 4232+ LDFLAGS=$_SAVE_LDFLAGS 4233+fi 4234+rm -f conftest* 4235+ 4236+ echo $ac_n "checking for --build-id=sha1 option to ld""... $ac_c" 1>&6 4237+echo "configure:4221: checking for --build-id=sha1 option to ld" >&5 4238+ _SAVE_LDFLAGS=$LDFLAGS 4239+ LDFLAGS="$LDFLAGS -Wl,--build-id=sha1" 4240+ cat > conftest.$ac_ext <<EOF 4241+#line 4225 "configure" 4242+#include "confdefs.h" 4243+ 4244+int main() { 4245+ 4246+; return 0; } 4247+EOF 4248+if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4249+ rm -rf conftest* 4250+ echo "$ac_t""yes" 1>&6 4251+else 4252+ echo "configure: failed program was:" >&5 4253+ cat conftest.$ac_ext >&5 4254+ rm -rf conftest* 4255+ echo "$ac_t""no" 1>&6 4256+ LDFLAGS=$_SAVE_LDFLAGS 4257+fi 4258+rm -f conftest* 4259+ 4260+ _DEFINES_CFLAGS="-include $jsconfdefs -DMOZILLA_CLIENT" 4261+ _USE_CPP_INCLUDE_FLAG=1 4262+fi 4263+ 4264+if test "$GNU_CXX"; then 4265+ _DEFINES_CXXFLAGS="-DMOZILLA_CLIENT -include $jsconfdefs" 4266+ _USE_CPP_INCLUDE_FLAG=1 4267+fi 4268+ 4269+case "$host" in 4270+*mingw*) 4271+ if test -n "$_WIN32_MSVC"; then 4272+ HOST_CFLAGS="$HOST_CFLAGS -nologo" 4273+ else 4274+ HOST_CFLAGS="$HOST_CFLAGS -mwindows" 4275+ fi 4276+ HOST_CFLAGS="$HOST_CFLAGS -DXP_WIN -DWIN32 -D_WIN32 -D_CRT_SECURE_NO_WARNINGS" 4277+ HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}" 4278+ HOST_BIN_SUFFIX=.exe 4279+ 4280+ case "${host_cpu}" in 4281+ i*86) 4282+ if test -n "$_WIN32_MSVC"; then 4283+ HOST_LDFLAGS="$HOST_LDFLAGS -MACHINE:X86" 4284+ fi 4285+ ;; 4286+ x86_64) 4287+ if test -n "$_WIN32_MSVC"; then 4288+ HOST_LDFLAGS="$HOST_LDFLAGS -MACHINE:X64" 4289+ fi 4290+ HOST_CFLAGS="$HOST_CFLAGS -D_AMD64_" 4291+ ;; 4292+ esac 4293+ ;; 4294+ 4295+*-darwin*) 4296+ HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX -DXP_MACOSX" 4297+ HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}" 4298+ ;; 4299+ 4300+*-linux*|*-kfreebsd*-gnu|*-gnu*) 4301+ HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX" 4302+ HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}" 4303+ ;; 4304+ 4305+*) 4306+ HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX" 4307+ HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}" 4308+ ;; 4309+esac 4310+ 4311+ 4312+CFLAGS="$CFLAGS $MOZ_HARDENING_CFLAGS_JS" 4313+CPPFLAGS="$CPPFLAGS $MOZ_HARDENING_CFLAGS_JS" 4314+CXXFLAGS="$CXXFLAGS $MOZ_HARDENING_CFLAGS_JS" 4315+LDFLAGS="$LDFLAGS $MOZ_HARDENING_LDFLAGS_JS" 4316+ 4317+ 4318+case "$target" in 4319+*-darwin*) 4320+ MOZ_OPTIMIZE_FLAGS="-O3" 4321+ CFLAGS="$CFLAGS -fno-common" 4322+ CXXFLAGS="$CXXFLAGS -fno-common -stdlib=libc++" 4323+ DSO_LDOPTS='' 4324+ STRIP="$STRIP -x -S" 4325+ LDFLAGS="$LDFLAGS -lobjc" 4326+ # The ExceptionHandling framework is needed for Objective-C exception 4327+ # logging code in nsObjCExceptions.h. Currently we only use that in debug 4328+ # builds. 4329+ _SAVE_LDFLAGS=$LDFLAGS 4330+ echo $ac_n "checking for -framework ExceptionHandling""... $ac_c" 1>&6 4331+echo "configure:4315: checking for -framework ExceptionHandling" >&5 4332+ LDFLAGS="$LDFLAGS -framework ExceptionHandling" 4333+ cat > conftest.$ac_ext <<EOF 4334+#line 4318 "configure" 4335+#include "confdefs.h" 4336+ 4337+int main() { 4338+return 0; 4339+; return 0; } 4340+EOF 4341+if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4342+ rm -rf conftest* 4343+ ac_cv_have_framework_exceptionhandling="yes" 4344+else 4345+ echo "configure: failed program was:" >&5 4346+ cat conftest.$ac_ext >&5 4347+ rm -rf conftest* 4348+ ac_cv_have_framework_exceptionhandling="no" 4349+fi 4350+rm -f conftest* 4351+ echo "$ac_t""$ac_cv_have_framework_exceptionhandling" 1>&6 4352+ if test "$ac_cv_have_framework_exceptionhandling" = "yes"; then 4353+ MOZ_DEBUG_LDFLAGS="$MOZ_DEBUG_LDFLAGS -framework ExceptionHandling"; 4354+ fi 4355+ LDFLAGS=$_SAVE_LDFLAGS 4356+ 4357+ if test "x$enable_dtrace" = "xyes"; then 4358+ echo "Skipping -dead_strip because DTrace is enabled. See bug 403132." 4359+ else 4360+ echo $ac_n "checking for -dead_strip option to ld""... $ac_c" 1>&6 4361+echo "configure:4345: checking for -dead_strip option to ld" >&5 4362+ _SAVE_LDFLAGS=$LDFLAGS 4363+ LDFLAGS="$LDFLAGS -Wl,-dead_strip" 4364+ cat > conftest.$ac_ext <<EOF 4365+#line 4349 "configure" 4366+#include "confdefs.h" 4367+ 4368+int main() { 4369+return 0; 4370+; return 0; } 4371+EOF 4372+if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4373+ rm -rf conftest* 4374+ _HAVE_DEAD_STRIP=1 4375+else 4376+ echo "configure: failed program was:" >&5 4377+ cat conftest.$ac_ext >&5 4378+ rm -rf conftest* 4379+ _HAVE_DEAD_STRIP= 4380+fi 4381+rm -f conftest* 4382+ if test -n "$_HAVE_DEAD_STRIP" ; then 4383+ echo "$ac_t""yes" 1>&6 4384+ MOZ_OPTIMIZE_LDFLAGS="-Wl,-dead_strip" 4385+ else 4386+ echo "$ac_t""no" 1>&6 4387+ fi 4388+ 4389+ LDFLAGS=$_SAVE_LDFLAGS 4390+ fi 4391+ MOZ_FIX_LINK_PATHS="-Wl,-executable_path,${DIST}/bin" 4392+ ;; 4393+ 4394+*-android*|*-linuxandroid*) 4395+ cat >> confdefs.pytmp <<\EOF 4396+ (''' NO_PW_GECOS ''', ' 1 ') 4397+EOF 4398+cat >> confdefs.h <<\EOF 4399+#define NO_PW_GECOS 1 4400+EOF 4401+ 4402+ MOZ_GFX_OPTIMIZE_MOBILE=1 4403+ MOZ_OPTIMIZE_FLAGS="-O3" 4404+ if test -z "$CLANG_CC"; then 4405+ MOZ_OPTIMIZE_FLAGS="-freorder-blocks -fno-reorder-functions $MOZ_OPTIMIZE_FLAGS" 4406+ fi 4407+ ;; 4408+ 4409+*-*linux*) 4410+ if test "$GNU_CC" -o "$GNU_CXX"; then 4411+ MOZ_PGO_OPTIMIZE_FLAGS="-O3" 4412+ MOZ_OPTIMIZE_FLAGS="-O3" 4413+ if test -z "$CLANG_CC"; then 4414+ MOZ_OPTIMIZE_FLAGS="-freorder-blocks $MOZ_OPTIMIZE_FLAGS" 4415+ fi 4416+ fi 4417+ 4418+ case "${target_cpu}" in 4419+ alpha*) 4420+ CFLAGS="$CFLAGS -mieee" 4421+ CXXFLAGS="$CXXFLAGS -mieee" 4422+ ;; 4423+ esac 4424+ ;; 4425+ 4426+*-mingw*) 4427+ DSO_CFLAGS= 4428+ DSO_PIC_CFLAGS= 4429+ if test -n "$GNU_CC" -o -n "$CLANG_CC"; then 4430+ CC="$CC -mwindows" 4431+ CXX="$CXX -mwindows" 4432+ CPP="$CPP -mwindows" 4433+ CFLAGS="$CFLAGS -mms-bitfields" 4434+ CXXFLAGS="$CXXFLAGS -mms-bitfields" 4435+ DSO_LDOPTS='-shared' 4436+ # Use temp file for windres (bug 213281) 4437+ RCFLAGS='-O coff --use-temp-file' 4438+ # mingw doesn't require kernel32, user32, and advapi32 explicitly 4439+ LIBS="$LIBS -lusp10 -lgdi32 -lwinmm -lwsock32" 4440+ MOZ_FIX_LINK_PATHS= 4441+ 4442+ if test -z "$CLANG_CC"; then 4443+ # Use static libgcc and libstdc++ 4444+ LDFLAGS="$LDFLAGS -static" 4445+ else 4446+ # Silence problematic clang warnings 4447+ CXXFLAGS="$CXXFLAGS -Wno-incompatible-ms-struct" 4448+ fi 4449+ 4450+ MOZ_OPTIMIZE_FLAGS="-O2" 4451+ 4452+ WIN32_CONSOLE_EXE_LDFLAGS=-mconsole 4453+ WIN32_GUI_EXE_LDFLAGS=-mwindows 4454+ else 4455+ TARGET_COMPILER_ABI=msvc 4456+ HOST_CC='$(CC)' 4457+ HOST_CXX='$(CXX)' 4458+ RANLIB='echo not_ranlib' 4459+ STRIP='echo not_strip' 4460+ PKG_SKIP_STRIP=1 4461+ # aarch64 doesn't support subsystems below 6.02 4462+ if test "$CPU_ARCH" = "aarch64"; then 4463+ WIN32_SUBSYSTEM_VERSION=6.02 4464+ else 4465+ WIN32_SUBSYSTEM_VERSION=6.01 4466+ fi 4467+ WIN32_CONSOLE_EXE_LDFLAGS=-SUBSYSTEM:CONSOLE,$WIN32_SUBSYSTEM_VERSION 4468+ WIN32_GUI_EXE_LDFLAGS=-SUBSYSTEM:WINDOWS,$WIN32_SUBSYSTEM_VERSION 4469+ DSO_LDOPTS=-SUBSYSTEM:WINDOWS,$WIN32_SUBSYSTEM_VERSION 4470+ _USE_CPP_INCLUDE_FLAG=1 4471+ _DEFINES_CFLAGS="-FI $jsconfdefs -DMOZILLA_CLIENT" 4472+ _DEFINES_CXXFLAGS="-FI $jsconfdefs -DMOZILLA_CLIENT" 4473+ CFLAGS="$CFLAGS -W3 -Gy -Zc:inline" 4474+ CXXFLAGS="$CXXFLAGS -W3 -Gy -Zc:inline" 4475+ if test "$CPU_ARCH" = "x86";then 4476+ 4477+ if test -z `echo $CFLAGS | grep -i [-/]arch:` ; then 4478+ CFLAGS="$CFLAGS -arch:SSE2" 4479+ fi 4480+ if test -z `echo $CXXFLAGS | grep -i [-/]arch:` ; then 4481+ CXXFLAGS="$CXXFLAGS -arch:SSE2" 4482+ fi 4483+ 4484+ fi 4485+ if test -z "$MOZ_ASAN"; then 4486+ CFLAGS="$CFLAGS -Gw" 4487+ CXXFLAGS="$CXXFLAGS -Gw" 4488+ else 4489+ # String tail merging doesn't play nice with ASan's ODR checker. 4490+ LDFLAGS="$LDFLAGS -opt:nolldtailmerge" 4491+ fi 4492+ if test -n "$CLANG_CL"; then 4493+ # XXX We should combine some of these with our generic GCC-style 4494+ # warning checks. 4495+ # 4496+ # Suppress the clang-cl warning for the inline 'new' and 'delete' in mozalloc 4497+ CXXFLAGS="$CXXFLAGS -Wno-inline-new-delete" 4498+ # We use offsetof on non-POD objects all the time. 4499+ # We also suppress this warning on other platforms. 4500+ CXXFLAGS="$CXXFLAGS -Wno-invalid-offsetof" 4501+ # This warns for reasonable things like: 4502+ # enum { X = 0xffffffffU }; 4503+ # which is annoying for IDL headers. 4504+ CXXFLAGS="$CXXFLAGS -Wno-microsoft-enum-value" 4505+ # This warns for cases that would be reached by the Microsoft 4506+ # #include rules, but also currently warns on cases that would 4507+ # *also* be reached by standard C++ include rules. That 4508+ # behavior doesn't seem useful, so we turn it off. 4509+ CXXFLAGS="$CXXFLAGS -Wno-microsoft-include" 4510+ # We normally error out on unknown pragmas, but since clang-cl 4511+ # claims to be MSVC, it would be difficult to add 4512+ # #if defined(_MSC_VER) && !defined(__clang__) everywhere we 4513+ # use such pragmas, so just ignore them. 4514+ CFLAGS="$CFLAGS -Wno-unknown-pragmas" 4515+ CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas" 4516+ # We get errors about various #pragma intrinsic directives from 4517+ # clang-cl, and we don't need to hear about those. 4518+ CFLAGS="$CFLAGS -Wno-ignored-pragmas" 4519+ CXXFLAGS="$CXXFLAGS -Wno-ignored-pragmas" 4520+ # clang-cl's Intrin.h marks things like _ReadWriteBarrier 4521+ # as __attribute((__deprecated__)). This is nice to know, 4522+ # but since we don't get the equivalent warning from MSVC, 4523+ # let's just ignore it. 4524+ CFLAGS="$CFLAGS -Wno-deprecated-declarations" 4525+ CXXFLAGS="$CXXFLAGS -Wno-deprecated-declarations" 4526+ # We use a function like: 4527+ # __declspec(noreturn) __inline void f() {} 4528+ # which -Winvalid-noreturn complains about. Again, MSVC seems 4529+ # OK with it, so let's silence the warning. 4530+ CFLAGS="$CFLAGS -Wno-invalid-noreturn" 4531+ CXXFLAGS="$CXXFLAGS -Wno-invalid-noreturn" 4532+ # Missing |override| on virtual function declarations isn't 4533+ # something that MSVC currently warns about. 4534+ CXXFLAGS="$CXXFLAGS -Wno-inconsistent-missing-override" 4535+ # We use -DHAS_EXCEPTIONS=0, which removes the |throw()| 4536+ # declaration on |operator delete(void*)|. However, clang-cl 4537+ # must internally declare |operator delete(void*)| differently, 4538+ # which causes this warning for virtually every file in the 4539+ # tree. clang-cl doesn't support -fno-exceptions or equivalent, 4540+ # so there doesn't seem to be any way to convince clang-cl to 4541+ # declare |delete| differently. Therefore, suppress this 4542+ # warning. 4543+ CXXFLAGS="$CXXFLAGS -Wno-implicit-exception-spec-mismatch" 4544+ # At least one MSVC header and several headers in-tree have 4545+ # unused typedefs, so turn this on. 4546+ CXXFLAGS="$CXXFLAGS -Wno-unused-local-typedef" 4547+ # jemalloc uses __declspec(allocator) as a profiler hint, 4548+ # which clang-cl doesn't understand. 4549+ CXXFLAGS="$CXXFLAGS -Wno-ignored-attributes" 4550+ # __attribute__((unused)) really means "might be unused" and 4551+ # we use it to avoid warnings about things that are unused 4552+ # in some compilation units, but used in many others. This 4553+ # warning insists on complaining about the latter case, which 4554+ # is annoying, and rather noisy. 4555+ CXXFLAGS="$CXXFLAGS -Wno-used-but-marked-unused" 4556+ fi 4557+ LIBS="$LIBS kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib" 4558+ MOZ_DEBUG_LDFLAGS='-DEBUG' 4559+ WARNINGS_AS_ERRORS='-WX' 4560+ MOZ_OPTIMIZE_FLAGS="-O2" 4561+ MOZ_FIX_LINK_PATHS= 4562+ LDFLAGS="$LDFLAGS -LARGEADDRESSAWARE" 4563+ if test -z "$DEVELOPER_OPTIONS"; then 4564+ LDFLAGS="$LDFLAGS -RELEASE" 4565+ fi 4566+ RCFLAGS="-nologo" 4567+ fi 4568+ cat >> confdefs.pytmp <<\EOF 4569+ (''' HAVE__MSIZE ''', ' 1 ') 4570+EOF 4571+cat >> confdefs.h <<\EOF 4572+#define HAVE__MSIZE 1 4573+EOF 4574+ 4575+ cat >> confdefs.pytmp <<\EOF 4576+ (''' WIN32_LEAN_AND_MEAN ''', ' 1 ') 4577+EOF 4578+cat >> confdefs.h <<\EOF 4579+#define WIN32_LEAN_AND_MEAN 1 4580+EOF 4581+ 4582+ cat >> confdefs.pytmp <<\EOF 4583+ (''' NOMINMAX ''', ' 1 ') 4584+EOF 4585+cat >> confdefs.h <<\EOF 4586+#define NOMINMAX 1 4587+EOF 4588+ 4589+ BIN_SUFFIX='.exe' 4590+ MOZ_USER_DIR="Mozilla" 4591+ 4592+ case "$host_os" in 4593+ cygwin*|msvc*|mks*) 4594+ { echo "configure: error: Using a Cygwin build environment is unsupported. Configure cannot check for presence of necessary headers. Please upgrade to MozillaBuild; see https://developer.mozilla.org/en/Windows_Build_Prerequisites." 1>&2; echo "configure: error: Using a Cygwin build environment is unsupported. Configure cannot check for presence of necessary headers. Please upgrade to MozillaBuild; see https://developer.mozilla.org/en/Windows_Build_Prerequisites." 1>&5; exit 1; } 4595+ ;; 4596+ esac 4597+ 4598+ if test -n "$GNU_CC" -a -z "$CLANG_CC"; then 4599+ CFLAGS="$CFLAGS -fno-keep-inline-dllexport" 4600+ CXXFLAGS="$CXXFLAGS -fno-keep-inline-dllexport" 4601+ fi 4602+ 4603+ case "$target" in 4604+ i*86-*) 4605+ if test -n "$GNU_CC"; then 4606+ CFLAGS="$CFLAGS -mstackrealign" 4607+ CXXFLAGS="$CXXFLAGS -mstackrealign" 4608+ LDFLAGS="$LDFLAGS -Wl,--large-address-aware" 4609+ else 4610+ DSO_LDOPTS="$DSO_LDOPTS -MACHINE:X86" 4611+ LDFLAGS="$LDFLAGS -SAFESEH" 4612+ fi 4613+ 4614+ cat >> confdefs.pytmp <<\EOF 4615+ (''' _X86_ ''', ' 1 ') 4616+EOF 4617+cat >> confdefs.h <<\EOF 4618+#define _X86_ 1 4619+EOF 4620+ 4621+ ;; 4622+ x86_64-*) 4623+ if test -n "$_WIN32_MSVC"; then 4624+ DSO_LDOPTS="$DSO_LDOPTS -MACHINE:X64" 4625+ fi 4626+ cat >> confdefs.pytmp <<\EOF 4627+ (''' _AMD64_ ''', ' 1 ') 4628+EOF 4629+cat >> confdefs.h <<\EOF 4630+#define _AMD64_ 1 4631+EOF 4632+ 4633+ ;; 4634+ aarch64-*) 4635+ if test -n "$_WIN32_MSVC"; then 4636+ DSO_LDOPTS="$DSO_LDOPTS -MACHINE:ARM64" 4637+ fi 4638+ cat >> confdefs.pytmp <<\EOF 4639+ (''' _ARM64_ ''', ' 1 ') 4640+EOF 4641+cat >> confdefs.h <<\EOF 4642+#define _ARM64_ 1 4643+EOF 4644+ 4645+ ;; 4646+ *) 4647+ cat >> confdefs.pytmp <<\EOF 4648+ (''' _CPU_ARCH_NOT_DEFINED ''', ' 1 ') 4649+EOF 4650+cat >> confdefs.h <<\EOF 4651+#define _CPU_ARCH_NOT_DEFINED 1 4652+EOF 4653+ 4654+ ;; 4655+ esac 4656+ ;; 4657+ 4658+*-netbsd*) 4659+ DSO_CFLAGS='' 4660+ CFLAGS="$CFLAGS -Dunix" 4661+ CXXFLAGS="$CXXFLAGS -Dunix" 4662+ if $CC -E - -dM </dev/null | grep __ELF__ >/dev/null; then 4663+ DSO_PIC_CFLAGS='-fPIC -DPIC' 4664+ DSO_LDOPTS='-shared' 4665+ MOZ_PROGRAM_LDFLAGS="$MOZ_PROGRAM_LDFLAGS -Wl,--export-dynamic" 4666+ else 4667+ DSO_PIC_CFLAGS='-fPIC -DPIC' 4668+ DSO_LDOPTS='-shared' 4669+ fi 4670+ # This will fail on a.out systems prior to 1.5.1_ALPHA. 4671+ if test "$LIBRUNPATH"; then 4672+ DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS" 4673+ fi 4674+ ;; 4675+ 4676+*-openbsd*) 4677+ DSO_CFLAGS='' 4678+ DSO_PIC_CFLAGS='-fPIC' 4679+ DSO_LDOPTS='-shared -fPIC' 4680+ if test "$LIBRUNPATH"; then 4681+ DSO_LDOPTS="-R$LIBRUNPATH $DSO_LDOPTS" 4682+ fi 4683+ ;; 4684+ 4685+*-solaris*) 4686+ MOZ_FIX_LINK_PATHS="-L${DIST}/bin" 4687+ ;; 4688+ 4689+esac 4690+ 4691+if test -z "$MOZ_OPTIMIZE_FLAGS"; then 4692+ MOZ_OPTIMIZE_FLAGS="-O" 4693+fi 4694+ 4695+if test -z "$COMPILE_ENVIRONMENT"; then 4696+ SKIP_COMPILER_CHECKS=1 4697+ SKIP_LIBRARY_CHECKS=1 4698+fi 4699+ 4700+if test -n "$COMPILE_ENVIRONMENT"; then 4701+ 4702+ 4703+ 4704+if test -z "$MOZ_DEBUG" -o -n "$MOZ_ASAN"; then 4705+ MOZ_NO_DEBUG_RTL=1 4706+fi 4707+ 4708+ 4709+ 4710+MOZ_DEBUG_ENABLE_DEFS="DEBUG" 4711+# Check whether --with-debug-label or --without-debug-label was given. 4712+if test "${with_debug_label+set}" = set; then 4713+ withval="$with_debug_label" 4714+ for option in `echo $withval | sed 's/,/ /g'`; do 4715+ MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS DEBUG_${option}" 4716+done 4717+fi 4718+ 4719+ 4720+if test -n "$MOZ_DEBUG"; then 4721+ if test -n "$COMPILE_ENVIRONMENT"; then 4722+ echo $ac_n "checking for valid debug flags""... $ac_c" 1>&6 4723+echo "configure:4707: checking for valid debug flags" >&5 4724+ _SAVE_CFLAGS=$CFLAGS 4725+ CFLAGS="$CFLAGS $MOZ_DEBUG_FLAGS" 4726+ cat > conftest.$ac_ext <<EOF 4727+#line 4711 "configure" 4728+#include "confdefs.h" 4729+#include <stdio.h> 4730+int main() { 4731+printf("Hello World\n"); 4732+; return 0; } 4733+EOF 4734+if { (eval echo configure:4718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4735+ rm -rf conftest* 4736+ _results=yes 4737+else 4738+ echo "configure: failed program was:" >&5 4739+ cat conftest.$ac_ext >&5 4740+ rm -rf conftest* 4741+ _results=no 4742+fi 4743+rm -f conftest* 4744+ echo "$ac_t""$_results" 1>&6 4745+ if test "$_results" = "no"; then 4746+ { echo "configure: error: These compiler flags are invalid: $MOZ_DEBUG_FLAGS" 1>&2; echo "configure: error: These compiler flags are invalid: $MOZ_DEBUG_FLAGS" 1>&5; exit 1; } 4747+ fi 4748+ CFLAGS=$_SAVE_CFLAGS 4749+ fi 4750+ 4751+ MOZ_DEBUG_DEFINES="$MOZ_DEBUG_ENABLE_DEFS" 4752+else 4753+ MOZ_DEBUG_DEFINES="NDEBUG TRIMMED" 4754+fi 4755+ 4756+ 4757+ 4758+ 4759+ 4760+# Check whether --enable-cpp-rtti or --disable-cpp-rtti was given. 4761+if test "${enable_cpp_rtti+set}" = set; then 4762+ enableval="$enable_cpp_rtti" 4763+ if test "$enableval" = "yes"; then 4764+ _MOZ_USE_RTTI=1 4765+ elif test "$enableval" = "no"; then 4766+ _MOZ_USE_RTTI= 4767+ else 4768+ { echo "configure: error: Option, cpp-rtti, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, cpp-rtti, does not take an argument ($enableval)." 1>&5; exit 1; } 4769+ fi 4770+fi 4771+ 4772+ 4773+if test -z "$_MOZ_USE_RTTI"; then 4774+ if test "$GNU_CC"; then 4775+ CXXFLAGS="$CXXFLAGS -fno-rtti" 4776+ else 4777+ case "$target" in 4778+ *-mingw*) 4779+ CXXFLAGS="$CXXFLAGS -GR-" 4780+ esac 4781+ fi 4782+fi 4783+ 4784+if test "$CLANG_CXX"; then 4785+ ## We disable return-type-c-linkage because jsval is defined as a C++ type but is 4786+ ## returned by C functions. This is possible because we use knowledge about the ABI 4787+ ## to typedef it to a C type with the same layout when the headers are included 4788+ ## from C. 4789+ _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-unknown-warning-option -Wno-return-type-c-linkage" 4790+fi 4791+ 4792+if test "$GNU_CC"; then 4793+ if test -z "$DEVELOPER_OPTIONS"; then 4794+ CFLAGS="$CFLAGS -ffunction-sections -fdata-sections" 4795+ CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections" 4796+ fi 4797+ 4798+ # For MinGW, we need big-obj otherwise we create too many sections in Unified builds 4799+ if test "${OS_ARCH}" = "WINNT"; then 4800+ CFLAGS="$CFLAGS -Wa,-mbig-obj" 4801+ CXXFLAGS="$CXXFLAGS -Wa,-mbig-obj" 4802+ fi 4803+ 4804+ CFLAGS="$CFLAGS -fno-math-errno" 4805+ CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno" 4806+fi 4807+ 4808+ 4809+# Check whether --enable-icf or --disable-icf was given. 4810+if test "${enable_icf+set}" = set; then 4811+ enableval="$enable_icf" 4812+ if test "$enableval" = "no"; then 4813+ MOZ_DISABLE_ICF=1 4814+ elif test "$enableval" = "yes"; then 4815+ MOZ_DISABLE_ICF= 4816+ else 4817+ { echo "configure: error: Option, icf, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, icf, does not take an argument ($enableval)." 1>&5; exit 1; } 4818+ fi 4819+fi 4820+ 4821+ 4822+if test "$GNU_CC" -a "$GCC_USE_GNU_LD" -a -z "$MOZ_DISABLE_ICF" -a -z "$DEVELOPER_OPTIONS"; then 4823+ echo $ac_n "checking whether the linker supports Identical Code Folding""... $ac_c" 1>&6 4824+echo "configure:4808: checking whether the linker supports Identical Code Folding" >&5 4825+if eval "test \"`echo '$''{'LD_SUPPORTS_ICF'+set}'`\" = set"; then 4826+ echo $ac_n "(cached) $ac_c" 1>&6 4827+else 4828+ echo 'int foo() {return 42;}' \ 4829+ 'int bar() {return 42;}' \ 4830+ 'int main() {return foo() - bar();}' > conftest.${ac_ext} 4831+ # If the linker supports ICF, foo and bar symbols will have 4832+ # the same address 4833+ if { ac_try='${CC-cc} -o conftest${ac_exeext} $LDFLAGS -Wl,--icf=safe -ffunction-sections conftest.${ac_ext} $LIBS 1>&2'; { (eval echo configure:4817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && 4834+ test -s conftest${ac_exeext} && 4835+ $LLVM_OBJDUMP -t conftest${ac_exeext} | awk '{a[$6] = $1} END {if (a["foo"] && (a["foo"] != a["bar"])) { exit 1 }}'; then 4836+ LD_SUPPORTS_ICF=yes 4837+ else 4838+ LD_SUPPORTS_ICF=no 4839+ fi 4840+ rm -rf conftest* 4841+fi 4842+ 4843+echo "$ac_t""$LD_SUPPORTS_ICF" 1>&6 4844+ if test "$LD_SUPPORTS_ICF" = yes; then 4845+ _SAVE_LDFLAGS="$LDFLAGS -Wl,--icf=safe" 4846+ LDFLAGS="$LDFLAGS -Wl,--icf=safe -Wl,--print-icf-sections" 4847+ cat > conftest.$ac_ext <<EOF 4848+#line 4832 "configure" 4849+#include "confdefs.h" 4850+ 4851+int main() { 4852+ 4853+; return 0; } 4854+EOF 4855+if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4856+ rm -rf conftest* 4857+ LD_PRINT_ICF_SECTIONS=-Wl,--print-icf-sections 4858+else 4859+ echo "configure: failed program was:" >&5 4860+ cat conftest.$ac_ext >&5 4861+ rm -rf conftest* 4862+ LD_PRINT_ICF_SECTIONS= 4863+fi 4864+rm -f conftest* 4865+ 4866+ LDFLAGS="$_SAVE_LDFLAGS" 4867+ fi 4868+fi 4869+ 4870+ 4871+if test "$GNU_CC" -a "$GCC_USE_GNU_LD" -a -z "$DEVELOPER_OPTIONS"; then 4872+ if test -n "$MOZ_DEBUG_FLAGS"; then 4873+ echo $ac_n "checking whether removing dead symbols breaks debugging""... $ac_c" 1>&6 4874+echo "configure:4858: checking whether removing dead symbols breaks debugging" >&5 4875+if eval "test \"`echo '$''{'GC_SECTIONS_BREAKS_DEBUG_RANGES'+set}'`\" = set"; then 4876+ echo $ac_n "(cached) $ac_c" 1>&6 4877+else 4878+ echo 'int foo() {return 42;}' \ 4879+ 'int bar() {return 1;}' \ 4880+ 'int main() {return foo();}' > conftest.${ac_ext} 4881+ if { ac_try='${CC-cc} -o conftest.${ac_objext} $CFLAGS $MOZ_DEBUG_FLAGS -c conftest.${ac_ext} 1>&2'; { (eval echo configure:4865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && 4882+ { ac_try='${CC-cc} -o conftest${ac_exeext} $LDFLAGS $MOZ_DEBUG_FLAGS -Wl,--gc-sections conftest.${ac_objext} $LIBS 1>&2'; { (eval echo configure:4866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && 4883+ test -s conftest${ac_exeext} -a -s conftest.${ac_objext}; then 4884+ if test "`$PYTHON -m mozbuild.configure.check_debug_ranges conftest.${ac_objext} conftest.${ac_ext}`" = \ 4885+ "`$PYTHON -m mozbuild.configure.check_debug_ranges conftest${ac_exeext} conftest.${ac_ext}`"; then 4886+ GC_SECTIONS_BREAKS_DEBUG_RANGES=no 4887+ else 4888+ GC_SECTIONS_BREAKS_DEBUG_RANGES=yes 4889+ fi 4890+ else 4891+ GC_SECTIONS_BREAKS_DEBUG_RANGES="no, but it's broken in some other way" 4892+ fi 4893+ rm -rf conftest* 4894+fi 4895+ 4896+echo "$ac_t""$GC_SECTIONS_BREAKS_DEBUG_RANGES" 1>&6 4897+ if test "$GC_SECTIONS_BREAKS_DEBUG_RANGES" = no; then 4898+ DSO_LDOPTS="$DSO_LDOPTS -Wl,--gc-sections" 4899+ fi 4900+ else 4901+ DSO_LDOPTS="$DSO_LDOPTS -Wl,--gc-sections" 4902+ fi 4903+fi 4904+ 4905+if test "$GNU_CC$CLANG_CC"; then 4906+ MOZ_PROGRAM_LDFLAGS="$MOZ_PROGRAM_LDFLAGS -pie" 4907+fi 4908+ 4909+ 4910+ 4911+if test -n "$GCC_USE_GNU_LD"; then 4912+ case "$LDFLAGS" in 4913+ *-fsanitize=address*) 4914+ LDFLAGS="$LDFLAGS -Wl,-Bsymbolic" 4915+ ;; 4916+ esac 4917+fi 4918+ 4919+ 4920+fi 4921+ 4922+if test -z "$SKIP_COMPILER_CHECKS"; then 4923+echo $ac_n "checking for working const""... $ac_c" 1>&6 4924+echo "configure:4908: checking for working const" >&5 4925+if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 4926+ echo $ac_n "(cached) $ac_c" 1>&6 4927+else 4928+ cat > conftest.$ac_ext <<EOF 4929+#line 4913 "configure" 4930+#include "confdefs.h" 4931+ 4932+int main() { 4933+ 4934+/* Ultrix mips cc rejects this. */ 4935+typedef int charset[2]; const charset x; 4936+/* SunOS 4.1.1 cc rejects this. */ 4937+char const *const *ccp; 4938+char **p; 4939+/* NEC SVR4.0.2 mips cc rejects this. */ 4940+struct point {int x, y;}; 4941+static struct point const zero = {0,0}; 4942+/* AIX XL C 1.02.0.0 rejects this. 4943+ It does not let you subtract one const X* pointer from another in an arm 4944+ of an if-expression whose if-part is not a constant expression */ 4945+const char *g = "string"; 4946+ccp = &g + (g ? g-g : 0); 4947+/* HPUX 7.0 cc rejects these. */ 4948+++ccp; 4949+p = (char**) ccp; 4950+ccp = (char const *const *) p; 4951+{ /* SCO 3.2v4 cc rejects this. */ 4952+ char *t; 4953+ char const *s = 0 ? (char *) 0 : (char const *) 0; 4954+ 4955+ *t++ = 0; 4956+} 4957+{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4958+ int x[] = {25, 17}; 4959+ const int *foo = &x[0]; 4960+ ++foo; 4961+} 4962+{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4963+ typedef const int *iptr; 4964+ iptr p = 0; 4965+ ++p; 4966+} 4967+{ /* AIX XL C 1.02.0.0 rejects this saying 4968+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4969+ struct s { int j; const int *ap[3]; }; 4970+ struct s *b; b->j = 5; 4971+} 4972+{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4973+ const int foo = 10; 4974+} 4975+ 4976+; return 0; } 4977+EOF 4978+if { (eval echo configure:4962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4979+ rm -rf conftest* 4980+ ac_cv_c_const=yes 4981+else 4982+ echo "configure: failed program was:" >&5 4983+ cat conftest.$ac_ext >&5 4984+ rm -rf conftest* 4985+ ac_cv_c_const=no 4986+fi 4987+rm -f conftest* 4988+fi 4989+ 4990+echo "$ac_t""$ac_cv_c_const" 1>&6 4991+if test $ac_cv_c_const = no; then 4992+ cat >> confdefs.pytmp <<\EOF 4993+ (''' const ''', r''' ''') 4994+EOF 4995+cat >> confdefs.h <<\EOF 4996+#define const 4997+EOF 4998+ 4999+fi 5000+ 5001+ 5002+ 5003+echo $ac_n "checking for mode_t""... $ac_c" 1>&6 5004+echo "configure:4988: checking for mode_t" >&5 5005+if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then 5006+ echo $ac_n "(cached) $ac_c" 1>&6 5007+else 5008+ cat > conftest.$ac_ext <<EOF 5009+#line 4993 "configure" 5010+#include "confdefs.h" 5011+#include <sys/types.h> 5012+#if STDC_HEADERS 5013+#include <stdlib.h> 5014+#include <stddef.h> 5015+#endif 5016+EOF 5017+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5018+ egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5019+ rm -rf conftest* 5020+ ac_cv_type_mode_t=yes 5021+else 5022+ rm -rf conftest* 5023+ ac_cv_type_mode_t=no 5024+fi 5025+rm -f conftest* 5026+ 5027+fi 5028+echo "$ac_t""$ac_cv_type_mode_t" 1>&6 5029+if test $ac_cv_type_mode_t = no; then 5030+ cat >> confdefs.pytmp <<\EOF 5031+ (''' mode_t ''', r''' int ''') 5032+EOF 5033+cat >> confdefs.h <<\EOF 5034+#define mode_t int 5035+EOF 5036+ 5037+fi 5038+ 5039+ 5040+ 5041+echo $ac_n "checking for off_t""... $ac_c" 1>&6 5042+echo "configure:5026: checking for off_t" >&5 5043+if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 5044+ echo $ac_n "(cached) $ac_c" 1>&6 5045+else 5046+ cat > conftest.$ac_ext <<EOF 5047+#line 5031 "configure" 5048+#include "confdefs.h" 5049+#include <sys/types.h> 5050+#if STDC_HEADERS 5051+#include <stdlib.h> 5052+#include <stddef.h> 5053+#endif 5054+EOF 5055+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5056+ egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5057+ rm -rf conftest* 5058+ ac_cv_type_off_t=yes 5059+else 5060+ rm -rf conftest* 5061+ ac_cv_type_off_t=no 5062+fi 5063+rm -f conftest* 5064+ 5065+fi 5066+echo "$ac_t""$ac_cv_type_off_t" 1>&6 5067+if test $ac_cv_type_off_t = no; then 5068+ cat >> confdefs.pytmp <<\EOF 5069+ (''' off_t ''', r''' long ''') 5070+EOF 5071+cat >> confdefs.h <<\EOF 5072+#define off_t long 5073+EOF 5074+ 5075+fi 5076+ 5077+ 5078+ 5079+echo $ac_n "checking for pid_t""... $ac_c" 1>&6 5080+echo "configure:5064: checking for pid_t" >&5 5081+if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 5082+ echo $ac_n "(cached) $ac_c" 1>&6 5083+else 5084+ cat > conftest.$ac_ext <<EOF 5085+#line 5069 "configure" 5086+#include "confdefs.h" 5087+#include <sys/types.h> 5088+#if STDC_HEADERS 5089+#include <stdlib.h> 5090+#include <stddef.h> 5091+#endif 5092+EOF 5093+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5094+ egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5095+ rm -rf conftest* 5096+ ac_cv_type_pid_t=yes 5097+else 5098+ rm -rf conftest* 5099+ ac_cv_type_pid_t=no 5100+fi 5101+rm -f conftest* 5102+ 5103+fi 5104+echo "$ac_t""$ac_cv_type_pid_t" 1>&6 5105+if test $ac_cv_type_pid_t = no; then 5106+ cat >> confdefs.pytmp <<\EOF 5107+ (''' pid_t ''', r''' int ''') 5108+EOF 5109+cat >> confdefs.h <<\EOF 5110+#define pid_t int 5111+EOF 5112+ 5113+fi 5114+ 5115+ 5116+ 5117+echo $ac_n "checking for size_t""... $ac_c" 1>&6 5118+echo "configure:5102: checking for size_t" >&5 5119+if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 5120+ echo $ac_n "(cached) $ac_c" 1>&6 5121+else 5122+ cat > conftest.$ac_ext <<EOF 5123+#line 5107 "configure" 5124+#include "confdefs.h" 5125+#include <sys/types.h> 5126+#if STDC_HEADERS 5127+#include <stdlib.h> 5128+#include <stddef.h> 5129+#endif 5130+EOF 5131+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5132+ egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5133+ rm -rf conftest* 5134+ ac_cv_type_size_t=yes 5135+else 5136+ rm -rf conftest* 5137+ ac_cv_type_size_t=no 5138+fi 5139+rm -f conftest* 5140+ 5141+fi 5142+echo "$ac_t""$ac_cv_type_size_t" 1>&6 5143+if test $ac_cv_type_size_t = no; then 5144+ cat >> confdefs.pytmp <<\EOF 5145+ (''' size_t ''', r''' unsigned ''') 5146+EOF 5147+cat >> confdefs.h <<\EOF 5148+#define size_t unsigned 5149+EOF 5150+ 5151+fi 5152+ 5153+ac_ext=C 5154+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 5155+ac_cpp='$CXXCPP $CPPFLAGS' 5156+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5157+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5158+cross_compiling=$ac_cv_prog_cxx_cross 5159+ 5160+if test "$CC_TYPE" = "clang-cl"; then 5161+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 5162+fi 5163+ 5164+ac_ext=c 5165+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 5166+ac_cpp='$CPP $CPPFLAGS' 5167+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5168+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5169+cross_compiling=$ac_cv_prog_cc_cross 5170+ 5171+if test "$CC_TYPE" = "clang-cl"; then 5172+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 5173+fi 5174+ 5175+echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 5176+echo "configure:5160: checking for ssize_t" >&5 5177+if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then 5178+ echo $ac_n "(cached) $ac_c" 1>&6 5179+else 5180+ cat > conftest.$ac_ext <<EOF 5181+#line 5165 "configure" 5182+#include "confdefs.h" 5183+#include <stdio.h> 5184+ #include <sys/types.h> 5185+int main() { 5186+ssize_t foo = 0; 5187+; return 0; } 5188+EOF 5189+if { (eval echo configure:5173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5190+ rm -rf conftest* 5191+ ac_cv_type_ssize_t=true 5192+else 5193+ echo "configure: failed program was:" >&5 5194+ cat conftest.$ac_ext >&5 5195+ rm -rf conftest* 5196+ ac_cv_type_ssize_t=false 5197+fi 5198+rm -f conftest* 5199+fi 5200+ 5201+if test "$ac_cv_type_ssize_t" = true ; then 5202+ cat >> confdefs.pytmp <<\EOF 5203+ (''' HAVE_SSIZE_T ''', ' 1 ') 5204+EOF 5205+cat >> confdefs.h <<\EOF 5206+#define HAVE_SSIZE_T 1 5207+EOF 5208+ 5209+ echo "$ac_t""yes" 1>&6 5210+else 5211+ echo "$ac_t""no" 1>&6 5212+fi 5213+ 5214+ac_ext=C 5215+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 5216+ac_cpp='$CXXCPP $CPPFLAGS' 5217+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5218+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5219+cross_compiling=$ac_cv_prog_cxx_cross 5220+ 5221+if test "$CC_TYPE" = "clang-cl"; then 5222+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 5223+fi 5224+ 5225+ 5226+ 5227+ac_ext=C 5228+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 5229+ac_cpp='$CXXCPP $CPPFLAGS' 5230+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5231+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5232+cross_compiling=$ac_cv_prog_cxx_cross 5233+ 5234+if test "$CC_TYPE" = "clang-cl"; then 5235+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 5236+fi 5237+ 5238+if test "$GNU_CXX"; then 5239+ echo $ac_n "checking whether 64-bits std::atomic requires -latomic""... $ac_c" 1>&6 5240+echo "configure:5224: checking whether 64-bits std::atomic requires -latomic" >&5 5241+if eval "test \"`echo '$''{'ac_cv_needs_atomic'+set}'`\" = set"; then 5242+ echo $ac_n "(cached) $ac_c" 1>&6 5243+else 5244+ if test "$CC_TYPE" = "clang" -a "$CPU_ARCH" = "x86" -a "$OS_ARCH" = "Linux"; then 5245+ ac_cv_needs_atomic=yes 5246+ else 5247+ cat > conftest.$ac_ext <<EOF 5248+#line 5232 "configure" 5249+#include "confdefs.h" 5250+#include <cstdint> 5251+ #include <atomic> 5252+int main() { 5253+ std::atomic<uint64_t> foo; foo = 1; 5254+; return 0; } 5255+EOF 5256+if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5257+ rm -rf conftest* 5258+ ac_cv_needs_atomic=no 5259+else 5260+ echo "configure: failed program was:" >&5 5261+ cat conftest.$ac_ext >&5 5262+ rm -rf conftest* 5263+ _SAVE_LIBS="$LIBS" 5264+ LIBS="$LIBS -latomic" 5265+ cat > conftest.$ac_ext <<EOF 5266+#line 5250 "configure" 5267+#include "confdefs.h" 5268+#include <cstdint> 5269+ #include <atomic> 5270+int main() { 5271+ std::atomic<uint64_t> foo; foo = 1; 5272+; return 0; } 5273+EOF 5274+if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5275+ rm -rf conftest* 5276+ ac_cv_needs_atomic=yes 5277+else 5278+ echo "configure: failed program was:" >&5 5279+ cat conftest.$ac_ext >&5 5280+ rm -rf conftest* 5281+ ac_cv_needs_atomic="do not know; assuming no" 5282+fi 5283+rm -f conftest* 5284+ LIBS="$_SAVE_LIBS" 5285+ 5286+fi 5287+rm -f conftest* 5288+ fi 5289+ 5290+fi 5291+ 5292+echo "$ac_t""$ac_cv_needs_atomic" 1>&6 5293+ if test "$ac_cv_needs_atomic" = yes; then 5294+ MOZ_NEEDS_LIBATOMIC=1 5295+ else 5296+ MOZ_NEEDS_LIBATOMIC= 5297+ fi 5298+ 5299+fi 5300+ac_ext=c 5301+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 5302+ac_cpp='$CPP $CPPFLAGS' 5303+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5304+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5305+cross_compiling=$ac_cv_prog_cc_cross 5306+ 5307+if test "$CC_TYPE" = "clang-cl"; then 5308+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 5309+fi 5310+ 5311+ 5312+ 5313+case "${OS_TARGET}" in 5314+WINNT|Darwin|Android) 5315+ ;; 5316+*) 5317+ STL_FLAGS="-I${DIST}/stl_wrappers" 5318+ WRAP_STL_INCLUDES=1 5319+ ;; 5320+esac 5321+ 5322+ac_header_dirent=no 5323+for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 5324+do 5325+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5326+echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 5327+echo "configure:5311: checking for $ac_hdr that defines DIR" >&5 5328+if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 5329+ echo $ac_n "(cached) $ac_c" 1>&6 5330+else 5331+ cat > conftest.$ac_ext <<EOF 5332+#line 5316 "configure" 5333+#include "confdefs.h" 5334+#include <sys/types.h> 5335+#include <$ac_hdr> 5336+int main() { 5337+DIR *dirp = 0; 5338+; return 0; } 5339+EOF 5340+if { (eval echo configure:5324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5341+ rm -rf conftest* 5342+ eval "ac_cv_header_dirent_$ac_safe=yes" 5343+else 5344+ echo "configure: failed program was:" >&5 5345+ cat conftest.$ac_ext >&5 5346+ rm -rf conftest* 5347+ eval "ac_cv_header_dirent_$ac_safe=no" 5348+fi 5349+rm -f conftest* 5350+fi 5351+if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 5352+ echo "$ac_t""yes" 1>&6 5353+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5354+ cat >> confdefs.pytmp <<EOF 5355+ (''' $ac_tr_hdr ''', ' 1 ') 5356+EOF 5357+cat >> confdefs.h <<EOF 5358+#define $ac_tr_hdr 1 5359+EOF 5360+ ac_header_dirent=$ac_hdr; break 5361+else 5362+ echo "$ac_t""no" 1>&6 5363+fi 5364+done 5365+# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 5366+if test $ac_header_dirent = dirent.h; then 5367+echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 5368+echo "configure:5352: checking for opendir in -ldir" >&5 5369+ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 5370+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5371+ echo $ac_n "(cached) $ac_c" 1>&6 5372+else 5373+ ac_save_LIBS="$LIBS" 5374+LIBS="-ldir $LIBS" 5375+cat > conftest.$ac_ext <<EOF 5376+#line 5360 "configure" 5377+#include "confdefs.h" 5378+/* Override any gcc2 internal prototype to avoid an error. */ 5379+/* We use char because int might match the return type of a gcc2 5380+ builtin and then its argument prototype would still apply. */ 5381+char opendir(); 5382+ 5383+int main() { 5384+opendir() 5385+; return 0; } 5386+EOF 5387+if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5388+ rm -rf conftest* 5389+ eval "ac_cv_lib_$ac_lib_var=yes" 5390+else 5391+ echo "configure: failed program was:" >&5 5392+ cat conftest.$ac_ext >&5 5393+ rm -rf conftest* 5394+ eval "ac_cv_lib_$ac_lib_var=no" 5395+fi 5396+rm -f conftest* 5397+LIBS="$ac_save_LIBS" 5398+ 5399+fi 5400+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5401+ echo "$ac_t""yes" 1>&6 5402+ LIBS="$LIBS -ldir" 5403+else 5404+ echo "$ac_t""no" 1>&6 5405+fi 5406+ 5407+else 5408+echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 5409+echo "configure:5393: checking for opendir in -lx" >&5 5410+ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 5411+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5412+ echo $ac_n "(cached) $ac_c" 1>&6 5413+else 5414+ ac_save_LIBS="$LIBS" 5415+LIBS="-lx $LIBS" 5416+cat > conftest.$ac_ext <<EOF 5417+#line 5401 "configure" 5418+#include "confdefs.h" 5419+/* Override any gcc2 internal prototype to avoid an error. */ 5420+/* We use char because int might match the return type of a gcc2 5421+ builtin and then its argument prototype would still apply. */ 5422+char opendir(); 5423+ 5424+int main() { 5425+opendir() 5426+; return 0; } 5427+EOF 5428+if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5429+ rm -rf conftest* 5430+ eval "ac_cv_lib_$ac_lib_var=yes" 5431+else 5432+ echo "configure: failed program was:" >&5 5433+ cat conftest.$ac_ext >&5 5434+ rm -rf conftest* 5435+ eval "ac_cv_lib_$ac_lib_var=no" 5436+fi 5437+rm -f conftest* 5438+LIBS="$ac_save_LIBS" 5439+ 5440+fi 5441+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5442+ echo "$ac_t""yes" 1>&6 5443+ LIBS="$LIBS -lx" 5444+else 5445+ echo "$ac_t""no" 1>&6 5446+fi 5447+ 5448+fi 5449+ 5450+case "$target_os" in 5451+freebsd*) 5452+# for stuff like -lXshm 5453+ CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}" 5454+ ;; 5455+esac 5456+ 5457+# Check whether --enable-dtrace or --disable-dtrace was given. 5458+if test "${enable_dtrace+set}" = set; then 5459+ enableval="$enable_dtrace" 5460+ if test "$enableval" = "yes"; then 5461+ enable_dtrace="yes" 5462+ elif test "$enableval" = "no"; then 5463+ : 5464+ else 5465+ { echo "configure: error: Option, dtrace, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, dtrace, does not take an argument ($enableval)." 1>&5; exit 1; } 5466+ fi 5467+fi 5468+ 5469+if test "x$enable_dtrace" = "xyes"; then 5470+ ac_safe=`echo "sys/sdt.h" | sed 'y%./+-%__p_%'` 5471+ echo $ac_n "checking for sys/sdt.h""... $ac_c" 1>&6 5472+echo "configure:5456: checking for sys/sdt.h" >&5 5473+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5474+ echo $ac_n "(cached) $ac_c" 1>&6 5475+else 5476+ cat > conftest.$ac_ext <<EOF 5477+#line 5461 "configure" 5478+#include "confdefs.h" 5479+ 5480+#include <sys/sdt.h> 5481+int main() { 5482+ 5483+; return 0; } 5484+EOF 5485+if { (eval echo configure:5469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5486+ rm -rf conftest* 5487+ eval "ac_cv_header_$ac_safe=yes" 5488+else 5489+ echo "configure: failed program was:" >&5 5490+ cat conftest.$ac_ext >&5 5491+ rm -rf conftest* 5492+ eval "ac_cv_header_$ac_safe=no" 5493+fi 5494+rm -f conftest* 5495+fi 5496+ 5497+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5498+ echo "$ac_t""yes" 1>&6 5499+ HAVE_DTRACE=1 5500+ else 5501+ echo "$ac_t""no" 1>&6 5502+ 5503+ fi 5504+ 5505+ if test -n "$HAVE_DTRACE"; then 5506+ cat >> confdefs.pytmp <<\EOF 5507+ (''' INCLUDE_MOZILLA_DTRACE ''', ' 1 ') 5508+EOF 5509+cat >> confdefs.h <<\EOF 5510+#define INCLUDE_MOZILLA_DTRACE 1 5511+EOF 5512+ 5513+ else 5514+ { echo "configure: error: dtrace enabled but sys/sdt.h not found" 1>&2; echo "configure: error: dtrace enabled but sys/sdt.h not found" 1>&5; exit 1; }; 5515+ fi 5516+fi 5517+ 5518+ 5519+echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6 5520+echo "configure:5504: checking for gethostbyname_r in -lc_r" >&5 5521+ac_lib_var=`echo c_r'_'gethostbyname_r | sed 'y%./+-%__p_%'` 5522+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5523+ echo $ac_n "(cached) $ac_c" 1>&6 5524+else 5525+ ac_save_LIBS="$LIBS" 5526+LIBS="-lc_r $LIBS" 5527+cat > conftest.$ac_ext <<EOF 5528+#line 5512 "configure" 5529+#include "confdefs.h" 5530+/* Override any gcc2 internal prototype to avoid an error. */ 5531+/* We use char because int might match the return type of a gcc2 5532+ builtin and then its argument prototype would still apply. */ 5533+char gethostbyname_r(); 5534+ 5535+int main() { 5536+gethostbyname_r() 5537+; return 0; } 5538+EOF 5539+if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5540+ rm -rf conftest* 5541+ eval "ac_cv_lib_$ac_lib_var=yes" 5542+else 5543+ echo "configure: failed program was:" >&5 5544+ cat conftest.$ac_ext >&5 5545+ rm -rf conftest* 5546+ eval "ac_cv_lib_$ac_lib_var=no" 5547+fi 5548+rm -f conftest* 5549+LIBS="$ac_save_LIBS" 5550+ 5551+fi 5552+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5553+ echo "$ac_t""yes" 1>&6 5554+ ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 5555+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 5556+ cat >> confdefs.pytmp <<EOF 5557+ (''' $ac_tr_lib ''', ' 1 ') 5558+EOF 5559+cat >> confdefs.h <<EOF 5560+#define $ac_tr_lib 1 5561+EOF 5562+ 5563+ LIBS="-lc_r $LIBS" 5564+ 5565+else 5566+ echo "$ac_t""no" 1>&6 5567+fi 5568+ 5569+ 5570+case $target in 5571+*-darwin*) 5572+ ;; 5573+*) 5574+ 5575+echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6 5576+echo "configure:5560: checking for library containing dlopen" >&5 5577+if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then 5578+ echo $ac_n "(cached) $ac_c" 1>&6 5579+else 5580+ ac_func_search_save_LIBS="$LIBS" 5581+ac_cv_search_dlopen="no" 5582+cat > conftest.$ac_ext <<EOF 5583+#line 5567 "configure" 5584+#include "confdefs.h" 5585+/* Override any gcc2 internal prototype to avoid an error. */ 5586+/* We use char because int might match the return type of a gcc2 5587+ builtin and then its argument prototype would still apply. */ 5588+char dlopen(); 5589+ 5590+int main() { 5591+dlopen() 5592+; return 0; } 5593+EOF 5594+if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5595+ rm -rf conftest* 5596+ ac_cv_search_dlopen="none required" 5597+else 5598+ echo "configure: failed program was:" >&5 5599+ cat conftest.$ac_ext >&5 5600+fi 5601+rm -f conftest* 5602+test "$ac_cv_search_dlopen" = "no" && for i in dl; do 5603+LIBS="-l$i $ac_func_search_save_LIBS" 5604+cat > conftest.$ac_ext <<EOF 5605+#line 5589 "configure" 5606+#include "confdefs.h" 5607+/* Override any gcc2 internal prototype to avoid an error. */ 5608+/* We use char because int might match the return type of a gcc2 5609+ builtin and then its argument prototype would still apply. */ 5610+char dlopen(); 5611+ 5612+int main() { 5613+dlopen() 5614+; return 0; } 5615+EOF 5616+if { (eval echo configure:5600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5617+ rm -rf conftest* 5618+ ac_cv_search_dlopen="-l$i" 5619+break 5620+else 5621+ echo "configure: failed program was:" >&5 5622+ cat conftest.$ac_ext >&5 5623+fi 5624+rm -f conftest* 5625+done 5626+LIBS="$ac_func_search_save_LIBS" 5627+fi 5628+ 5629+echo "$ac_t""$ac_cv_search_dlopen" 1>&6 5630+if test "$ac_cv_search_dlopen" != "no"; then 5631+ test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" 5632+ ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 5633+ echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 5634+echo "configure:5618: checking for dlfcn.h" >&5 5635+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5636+ echo $ac_n "(cached) $ac_c" 1>&6 5637+else 5638+ cat > conftest.$ac_ext <<EOF 5639+#line 5623 "configure" 5640+#include "confdefs.h" 5641+ 5642+#include <dlfcn.h> 5643+int main() { 5644+ 5645+; return 0; } 5646+EOF 5647+if { (eval echo configure:5631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5648+ rm -rf conftest* 5649+ eval "ac_cv_header_$ac_safe=yes" 5650+else 5651+ echo "configure: failed program was:" >&5 5652+ cat conftest.$ac_ext >&5 5653+ rm -rf conftest* 5654+ eval "ac_cv_header_$ac_safe=no" 5655+fi 5656+rm -f conftest* 5657+fi 5658+ 5659+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5660+ echo "$ac_t""yes" 1>&6 5661+ cat >> confdefs.pytmp <<\EOF 5662+ (''' HAVE_DLOPEN ''', ' 1 ') 5663+EOF 5664+cat >> confdefs.h <<\EOF 5665+#define HAVE_DLOPEN 1 5666+EOF 5667+ 5668+ else 5669+ echo "$ac_t""no" 1>&6 5670+ 5671+ fi 5672+ 5673+else : 5674+ 5675+fi 5676+ ;; 5677+esac 5678+ 5679+if test ! "$GNU_CXX"; then 5680+ echo $ac_n "checking for demangle in -lC""... $ac_c" 1>&6 5681+echo "configure:5665: checking for demangle in -lC" >&5 5682+ac_lib_var=`echo C'_'demangle | sed 'y%./+-%__p_%'` 5683+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5684+ echo $ac_n "(cached) $ac_c" 1>&6 5685+else 5686+ ac_save_LIBS="$LIBS" 5687+LIBS="-lC $LIBS" 5688+cat > conftest.$ac_ext <<EOF 5689+#line 5673 "configure" 5690+#include "confdefs.h" 5691+/* Override any gcc2 internal prototype to avoid an error. */ 5692+/* We use char because int might match the return type of a gcc2 5693+ builtin and then its argument prototype would still apply. */ 5694+char demangle(); 5695+ 5696+int main() { 5697+demangle() 5698+; return 0; } 5699+EOF 5700+if { (eval echo configure:5684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5701+ rm -rf conftest* 5702+ eval "ac_cv_lib_$ac_lib_var=yes" 5703+else 5704+ echo "configure: failed program was:" >&5 5705+ cat conftest.$ac_ext >&5 5706+ rm -rf conftest* 5707+ eval "ac_cv_lib_$ac_lib_var=no" 5708+fi 5709+rm -f conftest* 5710+LIBS="$ac_save_LIBS" 5711+ 5712+fi 5713+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5714+ echo "$ac_t""yes" 1>&6 5715+ ac_tr_lib=HAVE_LIB`echo C | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 5716+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 5717+ cat >> confdefs.pytmp <<EOF 5718+ (''' $ac_tr_lib ''', ' 1 ') 5719+EOF 5720+cat >> confdefs.h <<EOF 5721+#define $ac_tr_lib 1 5722+EOF 5723+ 5724+ LIBS="-lC $LIBS" 5725+ 5726+else 5727+ echo "$ac_t""no" 1>&6 5728+fi 5729+ 5730+fi 5731+ 5732+echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 5733+echo "configure:5717: checking for socket in -lsocket" >&5 5734+ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 5735+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5736+ echo $ac_n "(cached) $ac_c" 1>&6 5737+else 5738+ ac_save_LIBS="$LIBS" 5739+LIBS="-lsocket $LIBS" 5740+cat > conftest.$ac_ext <<EOF 5741+#line 5725 "configure" 5742+#include "confdefs.h" 5743+/* Override any gcc2 internal prototype to avoid an error. */ 5744+/* We use char because int might match the return type of a gcc2 5745+ builtin and then its argument prototype would still apply. */ 5746+char socket(); 5747+ 5748+int main() { 5749+socket() 5750+; return 0; } 5751+EOF 5752+if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5753+ rm -rf conftest* 5754+ eval "ac_cv_lib_$ac_lib_var=yes" 5755+else 5756+ echo "configure: failed program was:" >&5 5757+ cat conftest.$ac_ext >&5 5758+ rm -rf conftest* 5759+ eval "ac_cv_lib_$ac_lib_var=no" 5760+fi 5761+rm -f conftest* 5762+LIBS="$ac_save_LIBS" 5763+ 5764+fi 5765+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5766+ echo "$ac_t""yes" 1>&6 5767+ ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 5768+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 5769+ cat >> confdefs.pytmp <<EOF 5770+ (''' $ac_tr_lib ''', ' 1 ') 5771+EOF 5772+cat >> confdefs.h <<EOF 5773+#define $ac_tr_lib 1 5774+EOF 5775+ 5776+ LIBS="-lsocket $LIBS" 5777+ 5778+else 5779+ echo "$ac_t""no" 1>&6 5780+fi 5781+ 5782+ 5783+case "$target_os" in 5784+darwin*) 5785+ USE_PTHREADS=1 5786+ ;; 5787+*) 5788+ echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 5789+echo "configure:5773: checking for pthread_create in -lpthreads" >&5 5790+ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` 5791+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5792+ echo $ac_n "(cached) $ac_c" 1>&6 5793+else 5794+ ac_save_LIBS="$LIBS" 5795+LIBS="-lpthreads $LIBS" 5796+cat > conftest.$ac_ext <<EOF 5797+#line 5781 "configure" 5798+#include "confdefs.h" 5799+/* Override any gcc2 internal prototype to avoid an error. */ 5800+/* We use char because int might match the return type of a gcc2 5801+ builtin and then its argument prototype would still apply. */ 5802+char pthread_create(); 5803+ 5804+int main() { 5805+pthread_create() 5806+; return 0; } 5807+EOF 5808+if { (eval echo configure:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5809+ rm -rf conftest* 5810+ eval "ac_cv_lib_$ac_lib_var=yes" 5811+else 5812+ echo "configure: failed program was:" >&5 5813+ cat conftest.$ac_ext >&5 5814+ rm -rf conftest* 5815+ eval "ac_cv_lib_$ac_lib_var=no" 5816+fi 5817+rm -f conftest* 5818+LIBS="$ac_save_LIBS" 5819+ 5820+fi 5821+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5822+ echo "$ac_t""yes" 1>&6 5823+ USE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads" 5824+else 5825+ echo "$ac_t""no" 1>&6 5826+echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 5827+echo "configure:5811: checking for pthread_create in -lpthread" >&5 5828+ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` 5829+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5830+ echo $ac_n "(cached) $ac_c" 1>&6 5831+else 5832+ ac_save_LIBS="$LIBS" 5833+LIBS="-lpthread $LIBS" 5834+cat > conftest.$ac_ext <<EOF 5835+#line 5819 "configure" 5836+#include "confdefs.h" 5837+/* Override any gcc2 internal prototype to avoid an error. */ 5838+/* We use char because int might match the return type of a gcc2 5839+ builtin and then its argument prototype would still apply. */ 5840+char pthread_create(); 5841+ 5842+int main() { 5843+pthread_create() 5844+; return 0; } 5845+EOF 5846+if { (eval echo configure:5830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5847+ rm -rf conftest* 5848+ eval "ac_cv_lib_$ac_lib_var=yes" 5849+else 5850+ echo "configure: failed program was:" >&5 5851+ cat conftest.$ac_ext >&5 5852+ rm -rf conftest* 5853+ eval "ac_cv_lib_$ac_lib_var=no" 5854+fi 5855+rm -f conftest* 5856+LIBS="$ac_save_LIBS" 5857+ 5858+fi 5859+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5860+ echo "$ac_t""yes" 1>&6 5861+ USE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread" 5862+else 5863+ echo "$ac_t""no" 1>&6 5864+echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 5865+echo "configure:5849: checking for pthread_create in -lc_r" >&5 5866+ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` 5867+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5868+ echo $ac_n "(cached) $ac_c" 1>&6 5869+else 5870+ ac_save_LIBS="$LIBS" 5871+LIBS="-lc_r $LIBS" 5872+cat > conftest.$ac_ext <<EOF 5873+#line 5857 "configure" 5874+#include "confdefs.h" 5875+/* Override any gcc2 internal prototype to avoid an error. */ 5876+/* We use char because int might match the return type of a gcc2 5877+ builtin and then its argument prototype would still apply. */ 5878+char pthread_create(); 5879+ 5880+int main() { 5881+pthread_create() 5882+; return 0; } 5883+EOF 5884+if { (eval echo configure:5868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5885+ rm -rf conftest* 5886+ eval "ac_cv_lib_$ac_lib_var=yes" 5887+else 5888+ echo "configure: failed program was:" >&5 5889+ cat conftest.$ac_ext >&5 5890+ rm -rf conftest* 5891+ eval "ac_cv_lib_$ac_lib_var=no" 5892+fi 5893+rm -f conftest* 5894+LIBS="$ac_save_LIBS" 5895+ 5896+fi 5897+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5898+ echo "$ac_t""yes" 1>&6 5899+ USE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r" 5900+else 5901+ echo "$ac_t""no" 1>&6 5902+echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 5903+echo "configure:5887: checking for pthread_create in -lc" >&5 5904+ac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'` 5905+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5906+ echo $ac_n "(cached) $ac_c" 1>&6 5907+else 5908+ ac_save_LIBS="$LIBS" 5909+LIBS="-lc $LIBS" 5910+cat > conftest.$ac_ext <<EOF 5911+#line 5895 "configure" 5912+#include "confdefs.h" 5913+/* Override any gcc2 internal prototype to avoid an error. */ 5914+/* We use char because int might match the return type of a gcc2 5915+ builtin and then its argument prototype would still apply. */ 5916+char pthread_create(); 5917+ 5918+int main() { 5919+pthread_create() 5920+; return 0; } 5921+EOF 5922+if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5923+ rm -rf conftest* 5924+ eval "ac_cv_lib_$ac_lib_var=yes" 5925+else 5926+ echo "configure: failed program was:" >&5 5927+ cat conftest.$ac_ext >&5 5928+ rm -rf conftest* 5929+ eval "ac_cv_lib_$ac_lib_var=no" 5930+fi 5931+rm -f conftest* 5932+LIBS="$ac_save_LIBS" 5933+ 5934+fi 5935+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5936+ echo "$ac_t""yes" 1>&6 5937+ USE_PTHREADS=1 5938+ 5939+else 5940+ echo "$ac_t""no" 1>&6 5941+fi 5942+ 5943+ 5944+fi 5945+ 5946+ 5947+fi 5948+ 5949+ 5950+fi 5951+ 5952+ ;; 5953+esac 5954+ 5955+if test "$USE_PTHREADS"x != x 5956+then 5957+ rm -f conftest* 5958+ ac_cv_have_dash_pthread=no 5959+ echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6 5960+echo "configure:5944: checking whether ${CC-cc} accepts -pthread" >&5 5961+ echo 'int main() { return 0; }' | cat > conftest.c 5962+ ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 5963+ if test $? -eq 0; then 5964+ if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" -a -z "`egrep -i '(error|incorrect)' conftest.out`" ; then 5965+ ac_cv_have_dash_pthread=yes 5966+ case "$target_os" in 5967+ freebsd*) 5968+# Freebsd doesn't use -pthread for compiles, it uses them for linking 5969+ ;; 5970+ *) 5971+ CFLAGS="$CFLAGS -pthread" 5972+ CXXFLAGS="$CXXFLAGS -pthread" 5973+ ;; 5974+ esac 5975+ fi 5976+ fi 5977+ rm -f conftest* 5978+ echo "$ac_t""$ac_cv_have_dash_pthread" 1>&6 5979+ 5980+ ac_cv_have_dash_pthreads=no 5981+ if test "$ac_cv_have_dash_pthread" = "no"; then 5982+ echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6 5983+echo "configure:5967: checking whether ${CC-cc} accepts -pthreads" >&5 5984+ echo 'int main() { return 0; }' | cat > conftest.c 5985+ ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 5986+ if test $? -eq 0; then 5987+ if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" -a -z "`egrep -i '(error|incorrect)' conftest.out`" ; then 5988+ ac_cv_have_dash_pthreads=yes 5989+ CFLAGS="$CFLAGS -pthreads" 5990+ CXXFLAGS="$CXXFLAGS -pthreads" 5991+ fi 5992+ fi 5993+ rm -f conftest* 5994+ echo "$ac_t""$ac_cv_have_dash_pthreads" 1>&6 5995+ fi 5996+ 5997+ case "$target" in 5998+ *-*-freebsd*) 5999+ cat >> confdefs.pytmp <<\EOF 6000+ (''' _REENTRANT ''', ' 1 ') 6001+EOF 6002+cat >> confdefs.h <<\EOF 6003+#define _REENTRANT 1 6004+EOF 6005+ 6006+ cat >> confdefs.pytmp <<\EOF 6007+ (''' _THREAD_SAFE ''', ' 1 ') 6008+EOF 6009+cat >> confdefs.h <<\EOF 6010+#define _THREAD_SAFE 1 6011+EOF 6012+ 6013+ if test "$ac_cv_have_dash_pthread" = "yes"; then 6014+ _PTHREAD_LDFLAGS="-pthread" 6015+ fi 6016+ ;; 6017+ 6018+ *-*-openbsd*|*-*-bsdi*) 6019+ cat >> confdefs.pytmp <<\EOF 6020+ (''' _REENTRANT ''', ' 1 ') 6021+EOF 6022+cat >> confdefs.h <<\EOF 6023+#define _REENTRANT 1 6024+EOF 6025+ 6026+ cat >> confdefs.pytmp <<\EOF 6027+ (''' _THREAD_SAFE ''', ' 1 ') 6028+EOF 6029+cat >> confdefs.h <<\EOF 6030+#define _THREAD_SAFE 1 6031+EOF 6032+ 6033+ if test "$ac_cv_have_dash_pthread" = "yes"; then 6034+ _PTHREAD_LDFLAGS="-pthread" 6035+ fi 6036+ ;; 6037+ 6038+ *-*-linux*|*-*-kfreebsd*-gnu|*-*-gnu*) 6039+ cat >> confdefs.pytmp <<\EOF 6040+ (''' _REENTRANT ''', ' 1 ') 6041+EOF 6042+cat >> confdefs.h <<\EOF 6043+#define _REENTRANT 1 6044+EOF 6045+ 6046+ ;; 6047+ 6048+ esac 6049+ LDFLAGS="${_PTHREAD_LDFLAGS} ${LDFLAGS}" 6050+fi 6051+ 6052+ 6053+for ac_func in getc_unlocked _getc_nolock gmtime_r localtime_r pthread_getname_np pthread_get_name_np 6054+do 6055+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6056+echo "configure:6040: checking for $ac_func" >&5 6057+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6058+ echo $ac_n "(cached) $ac_c" 1>&6 6059+else 6060+ cat > conftest.$ac_ext <<EOF 6061+#line 6045 "configure" 6062+#define $ac_func innocuous_$ac_func 6063+#include "confdefs.h" 6064+#undef $ac_func 6065+/* System header to define __stub macros and hopefully few prototypes, 6066+ which can conflict with char $ac_func(); below. */ 6067+#define $ac_func innocuous_$ac_func 6068+#include <assert.h> 6069+#undef $ac_func 6070+/* Override any gcc2 internal prototype to avoid an error. */ 6071+/* We use char because int might match the return type of a gcc2 6072+ builtin and then its argument prototype would still apply. */ 6073+char $ac_func(); 6074+ 6075+int main() { 6076+ 6077+/* The GNU C library defines this for functions which it implements 6078+ to always fail with ENOSYS. Some functions are actually named 6079+ something starting with __ and the normal name is an alias. */ 6080+#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6081+choke me 6082+#else 6083+$ac_func(); 6084+#endif 6085+ 6086+; return 0; } 6087+EOF 6088+if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6089+ rm -rf conftest* 6090+ eval "ac_cv_func_$ac_func=yes" 6091+else 6092+ echo "configure: failed program was:" >&5 6093+ cat conftest.$ac_ext >&5 6094+ rm -rf conftest* 6095+ eval "ac_cv_func_$ac_func=no" 6096+fi 6097+rm -f conftest* 6098+fi 6099+ 6100+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6101+ echo "$ac_t""yes" 1>&6 6102+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6103+ cat >> confdefs.pytmp <<EOF 6104+ (''' $ac_tr_func ''', ' 1 ') 6105+EOF 6106+cat >> confdefs.h <<EOF 6107+#define $ac_tr_func 1 6108+EOF 6109+ 6110+else 6111+ echo "$ac_t""no" 1>&6 6112+fi 6113+done 6114+ 6115+ 6116+echo $ac_n "checking for clock_gettime(CLOCK_MONOTONIC)""... $ac_c" 1>&6 6117+echo "configure:6101: checking for clock_gettime(CLOCK_MONOTONIC)" >&5 6118+if eval "test \"`echo '$''{'ac_cv_clock_monotonic'+set}'`\" = set"; then 6119+ echo $ac_n "(cached) $ac_c" 1>&6 6120+else 6121+ for libs in "" -lrt; do 6122+ _SAVE_LIBS="$LIBS" 6123+ _SAVE_CFLAGS="$CFLAGS" 6124+ LIBS="$LIBS $libs" 6125+ CFLAGS="$CFLAGS $DSO_PIC_CFLAGS" 6126+ cat > conftest.$ac_ext <<EOF 6127+#line 6111 "configure" 6128+#include "confdefs.h" 6129+#define availability(os, ...) availability(os, strict, __VA_ARGS) 6130+ #include <time.h> 6131+int main() { 6132+ struct timespec ts; 6133+ clock_gettime(CLOCK_MONOTONIC, &ts); 6134+; return 0; } 6135+EOF 6136+if { (eval echo configure:6120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6137+ rm -rf conftest* 6138+ ac_cv_clock_monotonic=$libs 6139+ LIBS="$_SAVE_LIBS" 6140+ break 6141+else 6142+ echo "configure: failed program was:" >&5 6143+ cat conftest.$ac_ext >&5 6144+ rm -rf conftest* 6145+ ac_cv_clock_monotonic=no 6146+fi 6147+rm -f conftest* 6148+ LIBS="$_SAVE_LIBS" 6149+ CFLAGS="$_SAVE_CFLAGS" 6150+ done 6151+fi 6152+ 6153+echo "$ac_t""$ac_cv_clock_monotonic" 1>&6 6154+if test "$ac_cv_clock_monotonic" != "no"; then 6155+ HAVE_CLOCK_MONOTONIC=1 6156+ REALTIME_LIBS=$ac_cv_clock_monotonic 6157+ cat >> confdefs.pytmp <<\EOF 6158+ (''' HAVE_CLOCK_MONOTONIC ''', ' 1 ') 6159+EOF 6160+cat >> confdefs.h <<\EOF 6161+#define HAVE_CLOCK_MONOTONIC 1 6162+EOF 6163+ 6164+ 6165+ 6166+fi 6167+ 6168+echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 6169+echo "configure:6153: checking for sin in -lm" >&5 6170+ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 6171+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6172+ echo $ac_n "(cached) $ac_c" 1>&6 6173+else 6174+ ac_save_LIBS="$LIBS" 6175+LIBS="-lm $LIBS" 6176+cat > conftest.$ac_ext <<EOF 6177+#line 6161 "configure" 6178+#include "confdefs.h" 6179+/* Override any gcc2 internal prototype to avoid an error. */ 6180+/* We use char because int might match the return type of a gcc2 6181+ builtin and then its argument prototype would still apply. */ 6182+char sin(); 6183+ 6184+int main() { 6185+sin() 6186+; return 0; } 6187+EOF 6188+if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6189+ rm -rf conftest* 6190+ eval "ac_cv_lib_$ac_lib_var=yes" 6191+else 6192+ echo "configure: failed program was:" >&5 6193+ cat conftest.$ac_ext >&5 6194+ rm -rf conftest* 6195+ eval "ac_cv_lib_$ac_lib_var=no" 6196+fi 6197+rm -f conftest* 6198+LIBS="$ac_save_LIBS" 6199+ 6200+fi 6201+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6202+ echo "$ac_t""yes" 1>&6 6203+ ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 6204+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 6205+ cat >> confdefs.pytmp <<EOF 6206+ (''' $ac_tr_lib ''', ' 1 ') 6207+EOF 6208+cat >> confdefs.h <<EOF 6209+#define $ac_tr_lib 1 6210+EOF 6211+ 6212+ LIBS="-lm $LIBS" 6213+ 6214+else 6215+ echo "$ac_t""no" 1>&6 6216+fi 6217+ 6218+echo $ac_n "checking for sincos in -lm""... $ac_c" 1>&6 6219+echo "configure:6203: checking for sincos in -lm" >&5 6220+ac_lib_var=`echo m'_'sincos | sed 'y%./+-%__p_%'` 6221+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6222+ echo $ac_n "(cached) $ac_c" 1>&6 6223+else 6224+ ac_save_LIBS="$LIBS" 6225+LIBS="-lm $LIBS" 6226+cat > conftest.$ac_ext <<EOF 6227+#line 6211 "configure" 6228+#include "confdefs.h" 6229+/* Override any gcc2 internal prototype to avoid an error. */ 6230+/* We use char because int might match the return type of a gcc2 6231+ builtin and then its argument prototype would still apply. */ 6232+char sincos(); 6233+ 6234+int main() { 6235+sincos() 6236+; return 0; } 6237+EOF 6238+if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6239+ rm -rf conftest* 6240+ eval "ac_cv_lib_$ac_lib_var=yes" 6241+else 6242+ echo "configure: failed program was:" >&5 6243+ cat conftest.$ac_ext >&5 6244+ rm -rf conftest* 6245+ eval "ac_cv_lib_$ac_lib_var=no" 6246+fi 6247+rm -f conftest* 6248+LIBS="$ac_save_LIBS" 6249+ 6250+fi 6251+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6252+ echo "$ac_t""yes" 1>&6 6253+ cat >> confdefs.pytmp <<\EOF 6254+ (''' HAVE_SINCOS ''', ' 1 ') 6255+EOF 6256+cat >> confdefs.h <<\EOF 6257+#define HAVE_SINCOS 1 6258+EOF 6259+ 6260+else 6261+ echo "$ac_t""no" 1>&6 6262+fi 6263+ 6264+echo $ac_n "checking for __sincos in -lm""... $ac_c" 1>&6 6265+echo "configure:6249: checking for __sincos in -lm" >&5 6266+ac_lib_var=`echo m'_'__sincos | sed 'y%./+-%__p_%'` 6267+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6268+ echo $ac_n "(cached) $ac_c" 1>&6 6269+else 6270+ ac_save_LIBS="$LIBS" 6271+LIBS="-lm $LIBS" 6272+cat > conftest.$ac_ext <<EOF 6273+#line 6257 "configure" 6274+#include "confdefs.h" 6275+/* Override any gcc2 internal prototype to avoid an error. */ 6276+/* We use char because int might match the return type of a gcc2 6277+ builtin and then its argument prototype would still apply. */ 6278+char __sincos(); 6279+ 6280+int main() { 6281+__sincos() 6282+; return 0; } 6283+EOF 6284+if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6285+ rm -rf conftest* 6286+ eval "ac_cv_lib_$ac_lib_var=yes" 6287+else 6288+ echo "configure: failed program was:" >&5 6289+ cat conftest.$ac_ext >&5 6290+ rm -rf conftest* 6291+ eval "ac_cv_lib_$ac_lib_var=no" 6292+fi 6293+rm -f conftest* 6294+LIBS="$ac_save_LIBS" 6295+ 6296+fi 6297+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6298+ echo "$ac_t""yes" 1>&6 6299+ cat >> confdefs.pytmp <<\EOF 6300+ (''' HAVE___SINCOS ''', ' 1 ') 6301+EOF 6302+cat >> confdefs.h <<\EOF 6303+#define HAVE___SINCOS 1 6304+EOF 6305+ 6306+else 6307+ echo "$ac_t""no" 1>&6 6308+fi 6309+ 6310+ 6311+echo $ac_n "checking for res_ninit()""... $ac_c" 1>&6 6312+echo "configure:6296: checking for res_ninit()" >&5 6313+if eval "test \"`echo '$''{'ac_cv_func_res_ninit'+set}'`\" = set"; then 6314+ echo $ac_n "(cached) $ac_c" 1>&6 6315+else 6316+ if test "$OS_TARGET" = NetBSD -o "$OS_TARGET" = OpenBSD; then 6317+ ac_cv_func_res_ninit=no 6318+ else 6319+ cat > conftest.$ac_ext <<EOF 6320+#line 6304 "configure" 6321+#include "confdefs.h" 6322+ 6323+ #ifdef linux 6324+ #define _BSD_SOURCE 1 6325+ #endif 6326+ #include <sys/types.h> 6327+ #include <netinet/in.h> 6328+ #include <arpa/nameser.h> 6329+ #include <resolv.h> 6330+ 6331+int main() { 6332+int foo = res_ninit(&_res); 6333+; return 0; } 6334+EOF 6335+if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6336+ rm -rf conftest* 6337+ ac_cv_func_res_ninit=yes 6338+else 6339+ echo "configure: failed program was:" >&5 6340+ cat conftest.$ac_ext >&5 6341+ rm -rf conftest* 6342+ ac_cv_func_res_ninit=no 6343+fi 6344+rm -f conftest* 6345+ fi 6346+ 6347+fi 6348+ 6349+echo "$ac_t""$ac_cv_func_res_ninit" 1>&6 6350+ 6351+if test "$ac_cv_func_res_ninit" = "yes"; then 6352+ cat >> confdefs.pytmp <<\EOF 6353+ (''' HAVE_RES_NINIT ''', ' 1 ') 6354+EOF 6355+cat >> confdefs.h <<\EOF 6356+#define HAVE_RES_NINIT 1 6357+EOF 6358+ 6359+fi 6360+ 6361+ 6362+ echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 6363+echo "configure:6347: checking for nl_langinfo and CODESET" >&5 6364+if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then 6365+ echo $ac_n "(cached) $ac_c" 1>&6 6366+else 6367+ cat > conftest.$ac_ext <<EOF 6368+#line 6352 "configure" 6369+#include "confdefs.h" 6370+#include <langinfo.h> 6371+int main() { 6372+char* cs = nl_langinfo(CODESET); 6373+; return 0; } 6374+EOF 6375+if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6376+ rm -rf conftest* 6377+ am_cv_langinfo_codeset=yes 6378+else 6379+ echo "configure: failed program was:" >&5 6380+ cat conftest.$ac_ext >&5 6381+ rm -rf conftest* 6382+ am_cv_langinfo_codeset=no 6383+fi 6384+rm -f conftest* 6385+ 6386+fi 6387+ 6388+echo "$ac_t""$am_cv_langinfo_codeset" 1>&6 6389+ if test $am_cv_langinfo_codeset = yes; then 6390+ cat >> confdefs.pytmp <<\EOF 6391+ (''' HAVE_LANGINFO_CODESET ''', r''' 1 ''') 6392+EOF 6393+cat >> confdefs.h <<\EOF 6394+#define HAVE_LANGINFO_CODESET 1 6395+EOF 6396+ 6397+ HAVE_LANGINFO_CODESET=1 6398+ fi 6399+ 6400+ 6401+ 6402+ac_ext=c 6403+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 6404+ac_cpp='$CPP $CPPFLAGS' 6405+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 6406+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6407+cross_compiling=$ac_cv_prog_cc_cross 6408+ 6409+if test "$CC_TYPE" = "clang-cl"; then 6410+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 6411+fi 6412+ 6413+ 6414+echo $ac_n "checking for an implementation of va_copy()""... $ac_c" 1>&6 6415+echo "configure:6399: checking for an implementation of va_copy()" >&5 6416+if eval "test \"`echo '$''{'ac_cv_va_copy'+set}'`\" = set"; then 6417+ echo $ac_n "(cached) $ac_c" 1>&6 6418+else 6419+ cat > conftest.$ac_ext <<EOF 6420+#line 6404 "configure" 6421+#include "confdefs.h" 6422+#include <stdarg.h> 6423+ #include <stdlib.h> 6424+ void f (int i, ...) { 6425+ va_list args1, args2; 6426+ va_start (args1, i); 6427+ va_copy (args2, args1); 6428+ if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) 6429+ exit (1); 6430+ va_end (args1); va_end (args2); 6431+ } 6432+int main() { 6433+f(0, 42); return 0 6434+; return 0; } 6435+EOF 6436+if { (eval echo configure:6420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6437+ rm -rf conftest* 6438+ ac_cv_va_copy=yes 6439+else 6440+ echo "configure: failed program was:" >&5 6441+ cat conftest.$ac_ext >&5 6442+ rm -rf conftest* 6443+ ac_cv_va_copy=no 6444+ 6445+fi 6446+rm -f conftest* 6447+ 6448+fi 6449+ 6450+echo "$ac_t""$ac_cv_va_copy" 1>&6 6451+echo $ac_n "checking whether va_list can be copied by value""... $ac_c" 1>&6 6452+echo "configure:6436: checking whether va_list can be copied by value" >&5 6453+if eval "test \"`echo '$''{'ac_cv_va_val_copy'+set}'`\" = set"; then 6454+ echo $ac_n "(cached) $ac_c" 1>&6 6455+else 6456+ cat > conftest.$ac_ext <<EOF 6457+#line 6441 "configure" 6458+#include "confdefs.h" 6459+#include <stdarg.h> 6460+ #include <stdlib.h> 6461+ void f (int i, ...) { 6462+ va_list args1, args2; 6463+ va_start (args1, i); 6464+ args2 = args1; 6465+ if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) 6466+ exit (1); 6467+ va_end (args1); va_end (args2); 6468+ } 6469+int main() { 6470+f(0, 42); return 0 6471+; return 0; } 6472+EOF 6473+if { (eval echo configure:6457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6474+ rm -rf conftest* 6475+ ac_cv_va_val_copy=yes 6476+else 6477+ echo "configure: failed program was:" >&5 6478+ cat conftest.$ac_ext >&5 6479+ rm -rf conftest* 6480+ ac_cv_va_val_copy=no 6481+fi 6482+rm -f conftest* 6483+ 6484+fi 6485+ 6486+echo "$ac_t""$ac_cv_va_val_copy" 1>&6 6487+if test "x$ac_cv_va_copy" = "xyes"; then 6488+ cat >> confdefs.pytmp <<\EOF 6489+ (''' VA_COPY ''', r''' va_copy ''') 6490+EOF 6491+cat >> confdefs.h <<\EOF 6492+#define VA_COPY va_copy 6493+EOF 6494+ 6495+ cat >> confdefs.pytmp <<\EOF 6496+ (''' HAVE_VA_COPY ''', ' 1 ') 6497+EOF 6498+cat >> confdefs.h <<\EOF 6499+#define HAVE_VA_COPY 1 6500+EOF 6501+ 6502+fi 6503+ 6504+if test "x$ac_cv_va_val_copy" = "xno"; then 6505+ cat >> confdefs.pytmp <<\EOF 6506+ (''' HAVE_VA_LIST_AS_ARRAY ''', ' 1 ') 6507+EOF 6508+cat >> confdefs.h <<\EOF 6509+#define HAVE_VA_LIST_AS_ARRAY 1 6510+EOF 6511+ 6512+fi 6513+ 6514+ac_ext=C 6515+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 6516+ac_cpp='$CXXCPP $CPPFLAGS' 6517+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 6518+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6519+cross_compiling=$ac_cv_prog_cxx_cross 6520+ 6521+if test "$CC_TYPE" = "clang-cl"; then 6522+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 6523+fi 6524+ 6525+ 6526+ARM_ABI_PREFIX= 6527+if test "$GNU_CC"; then 6528+ if test "$CPU_ARCH" = "arm" ; then 6529+ echo $ac_n "checking for ARM EABI""... $ac_c" 1>&6 6530+echo "configure:6514: checking for ARM EABI" >&5 6531+if eval "test \"`echo '$''{'ac_cv_gcc_arm_eabi'+set}'`\" = set"; then 6532+ echo $ac_n "(cached) $ac_c" 1>&6 6533+else 6534+ cat > conftest.$ac_ext <<EOF 6535+#line 6519 "configure" 6536+#include "confdefs.h" 6537+ 6538+int main() { 6539+ 6540+#if defined(__ARM_EABI__) 6541+ return 0; 6542+#else 6543+#error Not ARM EABI. 6544+#endif 6545+ 6546+; return 0; } 6547+EOF 6548+if { (eval echo configure:6532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6549+ rm -rf conftest* 6550+ ac_cv_gcc_arm_eabi="yes" 6551+else 6552+ echo "configure: failed program was:" >&5 6553+ cat conftest.$ac_ext >&5 6554+ rm -rf conftest* 6555+ ac_cv_gcc_arm_eabi="no" 6556+fi 6557+rm -f conftest* 6558+fi 6559+ 6560+echo "$ac_t""$ac_cv_gcc_arm_eabi" 1>&6 6561+ if test "$ac_cv_gcc_arm_eabi" = "yes"; then 6562+ HAVE_ARM_EABI=1 6563+ ARM_ABI_PREFIX=eabi- 6564+ else 6565+ ARM_ABI_PREFIX=oabi- 6566+ fi 6567+ fi 6568+ 6569+ TARGET_COMPILER_ABI="${TARGET_COMPILER_ABI-${ARM_ABI_PREFIX}gcc3}" 6570+fi 6571+ 6572+# try harder, when checking for __thread support, see bug 521750 comment #33 and below 6573+# We pass MOZ_OPTIMIZE_LDFLAGS to the linker because if dead_strip is 6574+# enabled, the linker in xcode 4.1 will crash. Without this it would crash when 6575+# linking XUL. 6576+_SAVE_LDFLAGS=$LDFLAGS 6577+LDFLAGS="$LDFLAGS $DSO_PIC_CFLAGS $DSO_LDOPTS $MOZ_OPTIMIZE_LDFLAGS" 6578+echo $ac_n "checking for __thread keyword for TLS variables""... $ac_c" 1>&6 6579+echo "configure:6563: checking for __thread keyword for TLS variables" >&5 6580+if eval "test \"`echo '$''{'ac_cv_thread_keyword'+set}'`\" = set"; then 6581+ echo $ac_n "(cached) $ac_c" 1>&6 6582+else 6583+ cat > conftest.$ac_ext <<EOF 6584+#line 6568 "configure" 6585+#include "confdefs.h" 6586+__thread bool tlsIsMainThread = false; 6587+int main() { 6588+return tlsIsMainThread; 6589+; return 0; } 6590+EOF 6591+if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6592+ rm -rf conftest* 6593+ ac_cv_thread_keyword=yes 6594+else 6595+ echo "configure: failed program was:" >&5 6596+ cat conftest.$ac_ext >&5 6597+ rm -rf conftest* 6598+ ac_cv_thread_keyword=no 6599+fi 6600+rm -f conftest* 6601+fi 6602+ 6603+echo "$ac_t""$ac_cv_thread_keyword" 1>&6 6604+LDFLAGS=$_SAVE_LDFLAGS 6605+if test "$ac_cv_thread_keyword" = yes; then 6606+ # mips builds fail with TLS variables because of a binutils bug. 6607+ # See bug 528687 6608+ case "${target}" in 6609+ mips*-*) 6610+ : 6611+ ;; 6612+ *-android*|*-linuxandroid*) 6613+ : 6614+ ;; 6615+ *) 6616+ cat >> confdefs.pytmp <<\EOF 6617+ (''' HAVE_THREAD_TLS_KEYWORD ''', ' 1 ') 6618+EOF 6619+cat >> confdefs.h <<\EOF 6620+#define HAVE_THREAD_TLS_KEYWORD 1 6621+EOF 6622+ 6623+ ;; 6624+ esac 6625+fi 6626+ 6627+ac_ext=c 6628+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 6629+ac_cpp='$CPP $CPPFLAGS' 6630+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 6631+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6632+cross_compiling=$ac_cv_prog_cc_cross 6633+ 6634+if test "$CC_TYPE" = "clang-cl"; then 6635+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 6636+fi 6637+ 6638+ 6639+ 6640+for ac_func in localeconv 6641+do 6642+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6643+echo "configure:6627: checking for $ac_func" >&5 6644+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6645+ echo $ac_n "(cached) $ac_c" 1>&6 6646+else 6647+ cat > conftest.$ac_ext <<EOF 6648+#line 6632 "configure" 6649+#define $ac_func innocuous_$ac_func 6650+#include "confdefs.h" 6651+#undef $ac_func 6652+/* System header to define __stub macros and hopefully few prototypes, 6653+ which can conflict with char $ac_func(); below. */ 6654+#define $ac_func innocuous_$ac_func 6655+#include <assert.h> 6656+#undef $ac_func 6657+/* Override any gcc2 internal prototype to avoid an error. */ 6658+/* We use char because int might match the return type of a gcc2 6659+ builtin and then its argument prototype would still apply. */ 6660+char $ac_func(); 6661+ 6662+int main() { 6663+ 6664+/* The GNU C library defines this for functions which it implements 6665+ to always fail with ENOSYS. Some functions are actually named 6666+ something starting with __ and the normal name is an alias. */ 6667+#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6668+choke me 6669+#else 6670+$ac_func(); 6671+#endif 6672+ 6673+; return 0; } 6674+EOF 6675+if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6676+ rm -rf conftest* 6677+ eval "ac_cv_func_$ac_func=yes" 6678+else 6679+ echo "configure: failed program was:" >&5 6680+ cat conftest.$ac_ext >&5 6681+ rm -rf conftest* 6682+ eval "ac_cv_func_$ac_func=no" 6683+fi 6684+rm -f conftest* 6685+fi 6686+ 6687+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6688+ echo "$ac_t""yes" 1>&6 6689+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6690+ cat >> confdefs.pytmp <<EOF 6691+ (''' $ac_tr_func ''', ' 1 ') 6692+EOF 6693+cat >> confdefs.h <<EOF 6694+#define $ac_tr_func 1 6695+EOF 6696+ 6697+else 6698+ echo "$ac_t""no" 1>&6 6699+fi 6700+done 6701+ 6702+fi # ! SKIP_COMPILER_CHECKS 6703+ 6704+TARGET_XPCOM_ABI= 6705+if test -n "${CPU_ARCH}" -a -n "${TARGET_COMPILER_ABI}"; then 6706+ TARGET_XPCOM_ABI="${CPU_ARCH}-${TARGET_COMPILER_ABI}" 6707+fi 6708+ 6709+ 6710+if test -n "$SKIP_COMPILER_CHECKS"; then 6711+ cat >> confdefs.pytmp <<\EOF 6712+ (''' MALLOC_H ''', r''' <malloc.h> ''') 6713+EOF 6714+cat >> confdefs.h <<\EOF 6715+#define MALLOC_H <malloc.h> 6716+EOF 6717+ 6718+ cat >> confdefs.pytmp <<\EOF 6719+ (''' HAVE_FORCEINLINE ''', ' 1 ') 6720+EOF 6721+cat >> confdefs.h <<\EOF 6722+#define HAVE_FORCEINLINE 1 6723+EOF 6724+ 6725+ cat >> confdefs.pytmp <<\EOF 6726+ (''' HAVE_LOCALECONV ''', ' 1 ') 6727+EOF 6728+cat >> confdefs.h <<\EOF 6729+#define HAVE_LOCALECONV 1 6730+EOF 6731+ 6732+fi # SKIP_COMPILER_CHECKS 6733+ 6734+ 6735+# External Packages 6736+ 6737+ 6738+ 6739+ 6740+ 6741+ 6742+# Check whether --with-nspr-cflags or --without-nspr-cflags was given. 6743+if test "${with_nspr_cflags+set}" = set; then 6744+ withval="$with_nspr_cflags" 6745+ NSPR_CFLAGS=$withval 6746+fi 6747+ 6748+# Check whether --with-nspr-libs or --without-nspr-libs was given. 6749+if test "${with_nspr_libs+set}" = set; then 6750+ withval="$with_nspr_libs" 6751+ NSPR_LIBS=$withval 6752+fi 6753+ 6754+ 6755+ 6756+ # Check whether --enable-nspr-build or --disable-nspr-build was given. 6757+if test "${enable_nspr_build+set}" = set; then 6758+ enableval="$enable_nspr_build" 6759+ if test "$enableval" = "yes"; then 6760+ MOZ_BUILD_NSPR=1 6761+ elif test "$enableval" = "no"; then 6762+ MOZ_BUILD_NSPR= 6763+ else 6764+ { echo "configure: error: Option, nspr-build, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, nspr-build, does not take an argument ($enableval)." 1>&5; exit 1; } 6765+ fi 6766+fi 6767+ 6768+ 6769+ 6770+if test "$MOZ_BUILD_APP" != js || test -n "$JS_STANDALONE"; then 6771+ _IS_OUTER_CONFIGURE=1 6772+fi 6773+ 6774+# Check whether --with-system-nspr or --without-system-nspr was given. 6775+if test "${with_system_nspr+set}" = set; then 6776+ withval="$with_system_nspr" 6777+ if test "$withval" = "yes"; then 6778+ _USE_SYSTEM_NSPR=1 6779+ elif test "$withval" = "no"; then 6780+ : 6781+ else 6782+ { echo "configure: error: Option, system-nspr, does not take an argument ($withval)." 1>&2; echo "configure: error: Option, system-nspr, does not take an argument ($withval)." 1>&5; exit 1; } 6783+ fi 6784+fi 6785+ 6786+ 6787+JS_POSIX_NSPR=unset 6788+ 6789+ if test -n "$JS_STANDALONE"; then 6790+ case "$target" in 6791+ *linux*|*darwin*|*dragonfly*|*freebsd*|*netbsd*|*openbsd*) 6792+ if test -z "$_HAS_NSPR"; then 6793+ JS_POSIX_NSPR_DEFAULT=1 6794+ fi 6795+ ;; 6796+ esac 6797+ fi 6798+ 6799+ # Check whether --enable-posix-nspr-emulation or --disable-posix-nspr-emulation was given. 6800+if test "${enable_posix_nspr_emulation+set}" = set; then 6801+ enableval="$enable_posix_nspr_emulation" 6802+ if test "$enableval" = "yes"; then 6803+ JS_POSIX_NSPR=1 6804+ elif test "$enableval" = "no"; then 6805+ JS_POSIX_NSPR= 6806+ else 6807+ { echo "configure: error: Option, posix-nspr-emulation, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, posix-nspr-emulation, does not take an argument ($enableval)." 1>&5; exit 1; } 6808+ fi 6809+fi 6810+ 6811+ 6812+ 6813+ 6814+echo $ac_n "checking NSPR selection""... $ac_c" 1>&6 6815+echo "configure:6799: checking NSPR selection" >&5 6816+nspr_opts= 6817+which_nspr=default 6818+if test -n "$_USE_SYSTEM_NSPR"; then 6819+ nspr_opts="x$nspr_opts" 6820+ which_nspr="system" 6821+fi 6822+if test -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then 6823+ nspr_opts="x$nspr_opts" 6824+ which_nspr="command-line" 6825+fi 6826+if test -n "$MOZ_BUILD_NSPR"; then 6827+ nspr_opts="x$nspr_opts" 6828+ which_nspr="source-tree" 6829+fi 6830+if test "$JS_POSIX_NSPR" = unset; then 6831+ JS_POSIX_NSPR= 6832+else 6833+ nspr_opts="x$nspr_opts" 6834+ which_nspr="posix-wrapper" 6835+fi 6836+ 6837+if test -z "$nspr_opts"; then 6838+ if test "$MOZ_BUILD_APP" != js; then 6839+ MOZ_BUILD_NSPR=1 6840+ which_nspr="source-tree" 6841+ else 6842+ JS_POSIX_NSPR="$JS_POSIX_NSPR_DEFAULT" 6843+ if test -z "$JS_POSIX_NSPR"; then 6844+ MOZ_BUILD_NSPR=1 6845+ which_nspr="source-tree" 6846+ else 6847+ which_nspr="posix-wrapper" 6848+ fi 6849+ fi 6850+fi 6851+ 6852+if test -z "$nspr_opts" || test "$nspr_opts" = x; then 6853+ echo "$ac_t""$which_nspr" 1>&6 6854+else 6855+ { echo "configure: error: only one way of using NSPR may be selected. See 'configure --help'." 1>&2; echo "configure: error: only one way of using NSPR may be selected. See 'configure --help'." 1>&5; exit 1; } 6856+fi 6857+ 6858+ 6859+ 6860+if test "$MOZ_BUILD_APP" = js; then 6861+ if test "$JS_POSIX_NSPR" = 1; then 6862+ cat >> confdefs.pytmp <<\EOF 6863+ (''' JS_POSIX_NSPR ''', ' 1 ') 6864+EOF 6865+cat >> confdefs.h <<\EOF 6866+#define JS_POSIX_NSPR 1 6867+EOF 6868+ 6869+ fi 6870+ 6871+fi 6872+ 6873+# A (sub)configure invoked by the toplevel configure will always receive 6874+# --with-nspr-libs on the command line. It will never need to figure out 6875+# anything itself. 6876+if test -n "$_IS_OUTER_CONFIGURE"; then 6877+ 6878+if test -n "$_USE_SYSTEM_NSPR"; then 6879+ 6880+# Check whether --with-nspr-prefix or --without-nspr-prefix was given. 6881+if test "${with_nspr_prefix+set}" = set; then 6882+ withval="$with_nspr_prefix" 6883+ nspr_config_prefix="$withval" 6884+else 6885+ nspr_config_prefix="" 6886+fi 6887+ 6888+ 6889+# Check whether --with-nspr-exec-prefix or --without-nspr-exec-prefix was given. 6890+if test "${with_nspr_exec_prefix+set}" = set; then 6891+ withval="$with_nspr_exec_prefix" 6892+ nspr_config_exec_prefix="$withval" 6893+else 6894+ nspr_config_exec_prefix="" 6895+fi 6896+ 6897+ 6898+ if test -n "$nspr_config_exec_prefix"; then 6899+ nspr_config_args="$nspr_config_args --exec-prefix=$nspr_config_exec_prefix" 6900+ if test -z "$NSPR_CONFIG"; then 6901+ NSPR_CONFIG=$nspr_config_exec_prefix/bin/nspr-config 6902+ fi 6903+ fi 6904+ if test -n "$nspr_config_prefix"; then 6905+ nspr_config_args="$nspr_config_args --prefix=$nspr_config_prefix" 6906+ if test -z "$NSPR_CONFIG"; then 6907+ NSPR_CONFIG=$nspr_config_prefix/bin/nspr-config 6908+ fi 6909+ fi 6910+ 6911+ unset ac_cv_path_NSPR_CONFIG 6912+ # Extract the first word of "nspr-config", so it can be a program name with args. 6913+set dummy nspr-config; ac_word=$2 6914+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 6915+echo "configure:6899: checking for $ac_word" >&5 6916+if eval "test \"`echo '$''{'ac_cv_path_NSPR_CONFIG'+set}'`\" = set"; then 6917+ echo $ac_n "(cached) $ac_c" 1>&6 6918+else 6919+ case "$NSPR_CONFIG" in 6920+ /*) 6921+ ac_cv_path_NSPR_CONFIG="$NSPR_CONFIG" # Let the user override the test with a path. 6922+ ;; 6923+ ?:/*) 6924+ ac_cv_path_NSPR_CONFIG="$NSPR_CONFIG" # Let the user override the test with a dos path. 6925+ ;; 6926+ *) 6927+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 6928+ ac_dummy="$PATH" 6929+ for ac_dir in $ac_dummy; do 6930+ test -z "$ac_dir" && ac_dir=. 6931+ if test -f $ac_dir/$ac_word; then 6932+ ac_cv_path_NSPR_CONFIG="$ac_dir/$ac_word" 6933+ break 6934+ fi 6935+ done 6936+ IFS="$ac_save_ifs" 6937+ test -z "$ac_cv_path_NSPR_CONFIG" && ac_cv_path_NSPR_CONFIG="no" 6938+ ;; 6939+esac 6940+fi 6941+NSPR_CONFIG="$ac_cv_path_NSPR_CONFIG" 6942+if test -n "$NSPR_CONFIG"; then 6943+ echo "$ac_t""$NSPR_CONFIG" 1>&6 6944+else 6945+ echo "$ac_t""no" 1>&6 6946+fi 6947+ 6948+ min_nspr_version=$NSPR_MINVER 6949+ echo $ac_n "checking for NSPR - version >= $min_nspr_version""... $ac_c" 1>&6 6950+echo "configure:6934: checking for NSPR - version >= $min_nspr_version" >&5 6951+ 6952+ no_nspr="" 6953+ if test "$NSPR_CONFIG" != "no"; then 6954+ NSPR_CFLAGS=`$NSPR_CONFIG $nspr_config_args --cflags` 6955+ NSPR_LIBS=`$NSPR_CONFIG $nspr_config_args --libs` 6956+ NSPR_VERSION_STRING=`$NSPR_CONFIG $nspr_config_args --version` 6957+ elif test -n "${NO_NSPR_CONFIG_SYSTEM_VERSION}"; then 6958+ NSPR_CFLAGS="${NO_NSPR_CONFIG_SYSTEM_CFLAGS}" 6959+ NSPR_LIBS="${NO_NSPR_CONFIG_SYSTEM_LDFLAGS}" 6960+ NSPR_VERSION_STRING="$NO_NSPR_CONFIG_SYSTEM_VERSION" 6961+ else 6962+ no_nspr="yes" 6963+ fi 6964+ 6965+ if test -z "$no_nspr"; then 6966+ nspr_config_major_version=`echo $NSPR_VERSION_STRING | \ 6967+ sed 's/\([0-9]*\)\.\([0-9]*\)\(\.\([0-9]*\)\)\{0,1\}/\1/'` 6968+ nspr_config_minor_version=`echo $NSPR_VERSION_STRING | \ 6969+ sed 's/\([0-9]*\)\.\([0-9]*\)\(\.\([0-9]*\)\)\{0,1\}/\2/'` 6970+ nspr_config_micro_version=`echo $NSPR_VERSION_STRING | \ 6971+ sed 's/\([0-9]*\)\.\([0-9]*\)\(\.\([0-9]*\)\)\{0,1\}/\4/'` 6972+ if test -z "$nspr_config_micro_version"; then 6973+ nspr_config_micro_version="0" 6974+ fi 6975+ 6976+ min_nspr_major_version=`echo $min_nspr_version | \ 6977+ sed 's/\([0-9]*\)\.\([0-9]*\)\(\.\([0-9]*\)\)\{0,1\}/\1/'` 6978+ min_nspr_minor_version=`echo $min_nspr_version | \ 6979+ sed 's/\([0-9]*\)\.\([0-9]*\)\(\.\([0-9]*\)\)\{0,1\}/\2/'` 6980+ min_nspr_micro_version=`echo $min_nspr_version | \ 6981+ sed 's/\([0-9]*\)\.\([0-9]*\)\(\.\([0-9]*\)\)\{0,1\}/\4/'` 6982+ if test -z "$min_nspr_micro_version"; then 6983+ min_nspr_micro_version="0" 6984+ fi 6985+ 6986+ if test "$nspr_config_major_version" -ne "$min_nspr_major_version"; then 6987+ no_nspr="yes" 6988+ elif test "$nspr_config_major_version" -eq "$min_nspr_major_version" && 6989+ test "$nspr_config_minor_version" -lt "$min_nspr_minor_version"; then 6990+ no_nspr="yes" 6991+ elif test "$nspr_config_major_version" -eq "$min_nspr_major_version" && 6992+ test "$nspr_config_minor_version" -eq "$min_nspr_minor_version" && 6993+ test "$nspr_config_micro_version" -lt "$min_nspr_micro_version"; then 6994+ no_nspr="yes" 6995+ fi 6996+ fi 6997+ 6998+ if test -z "$no_nspr"; then 6999+ echo "$ac_t""yes" 1>&6 7000+ MOZ_SYSTEM_NSPR=1 7001+ else 7002+ echo "$ac_t""no" 1>&6 7003+ { echo "configure: error: you do not have NSPR installed or your version is older than $NSPR_MINVER." 1>&2; echo "configure: error: you do not have NSPR installed or your version is older than $NSPR_MINVER." 1>&5; exit 1; } 7004+ fi 7005+ 7006+ 7007+ 7008+ 7009+ 7010+ 7011+fi 7012+ 7013+if test -n "$MOZ_SYSTEM_NSPR" -o -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then 7014+ _SAVE_CFLAGS=$CFLAGS 7015+ CFLAGS="$CFLAGS $NSPR_CFLAGS" 7016+ cat > conftest.$ac_ext <<EOF 7017+#line 7001 "configure" 7018+#include "confdefs.h" 7019+#include "prtypes.h" 7020+int main() { 7021+#ifndef PR_STATIC_ASSERT 7022+ #error PR_STATIC_ASSERT not defined or requires including prtypes.h 7023+ #endif 7024+; return 0; } 7025+EOF 7026+if { (eval echo configure:7010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7027+ : 7028+else 7029+ echo "configure: failed program was:" >&5 7030+ cat conftest.$ac_ext >&5 7031+ rm -rf conftest* 7032+ { echo "configure: error: system NSPR does not support PR_STATIC_ASSERT or including prtypes.h does not provide it" 1>&2; echo "configure: error: system NSPR does not support PR_STATIC_ASSERT or including prtypes.h does not provide it" 1>&5; exit 1; } 7033+fi 7034+rm -f conftest* 7035+ cat > conftest.$ac_ext <<EOF 7036+#line 7020 "configure" 7037+#include "confdefs.h" 7038+#include "prtypes.h" 7039+int main() { 7040+#ifndef PR_UINT64 7041+ #error PR_UINT64 not defined or requires including prtypes.h 7042+ #endif 7043+; return 0; } 7044+EOF 7045+if { (eval echo configure:7029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7046+ : 7047+else 7048+ echo "configure: failed program was:" >&5 7049+ cat conftest.$ac_ext >&5 7050+ rm -rf conftest* 7051+ { echo "configure: error: system NSPR does not support PR_UINT64 or including prtypes.h does not provide it" 1>&2; echo "configure: error: system NSPR does not support PR_UINT64 or including prtypes.h does not provide it" 1>&5; exit 1; } 7052+fi 7053+rm -f conftest* 7054+ CFLAGS=$_SAVE_CFLAGS 7055+ NSPR_INCLUDE_DIR=`echo ${NSPR_CFLAGS} | sed -e 's/.*-I\([^ ]*\).*/\1/'` 7056+ NSPR_LIB_DIR=`echo ${NSPR_LIBS} | sed -e 's/.*-L\([^ ]*\).*/\1/'` 7057+elif test -z "$JS_POSIX_NSPR"; then 7058+ NSPR_INCLUDE_DIR="${DIST}/include/nspr" 7059+ NSPR_CFLAGS="-I${NSPR_INCLUDE_DIR}" 7060+ if test -n "$GNU_CC"; then 7061+ if test -n "$MOZ_FOLD_LIBS"; then 7062+ NSPR_LIB_DIR=${DIST}/lib 7063+ else 7064+ NSPR_LIB_DIR=${DIST}/bin 7065+ fi 7066+ NSPR_LIBS="-L${NSPR_LIB_DIR} -lnspr${NSPR_VERSION} -lplc${NSPR_VERSION} -lplds${NSPR_VERSION}" 7067+ else 7068+ # NSS needs actual static libs to link to, and this is where they are. 7069+ NSPR_LIBS="${DIST}/lib/nspr${NSPR_VERSION}.lib ${DIST}/lib/plc${NSPR_VERSION}.lib ${DIST}/lib/plds${NSPR_VERSION}.lib " 7070+ NSPR_LIB_DIR="${DIST}/lib" 7071+ fi 7072+fi 7073+ 7074+ 7075+ 7076+ 7077+ 7078+PKGCONF_REQUIRES_PRIVATE="Requires.private: nspr" 7079+if test -n "$MOZ_SYSTEM_NSPR"; then 7080+ _SAVE_CFLAGS=$CFLAGS 7081+ CFLAGS="$CFLAGS $NSPR_CFLAGS" 7082+ cat > conftest.$ac_ext <<EOF 7083+#line 7067 "configure" 7084+#include "confdefs.h" 7085+#include "prlog.h" 7086+int main() { 7087+#ifndef PR_STATIC_ASSERT 7088+ #error PR_STATIC_ASSERT not defined 7089+ #endif 7090+; return 0; } 7091+EOF 7092+if { (eval echo configure:7076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7093+ : 7094+else 7095+ echo "configure: failed program was:" >&5 7096+ cat conftest.$ac_ext >&5 7097+ rm -rf conftest* 7098+ { echo "configure: error: system NSPR does not support PR_STATIC_ASSERT" 1>&2; echo "configure: error: system NSPR does not support PR_STATIC_ASSERT" 1>&5; exit 1; } 7099+fi 7100+rm -f conftest* 7101+ CFLAGS=$_SAVE_CFLAGS 7102+ # piggy back on $MOZ_SYSTEM_NSPR to set a variable for the nspr check for js.pc 7103+ PKGCONF_REQUIRES_PRIVATE="Requires.private: nspr >= $NSPR_MINVER" 7104+elif test -n "$JS_POSIX_NSPR"; then 7105+ PKGCONF_REQUIRES_PRIVATE= 7106+fi 7107+ 7108+ 7109+fi # _IS_OUTER_CONFIGURE 7110+ 7111+ 7112+ 7113+if test -n "$JS_STANDALONE"; then 7114+ ZLIB_DIR=yes 7115+fi 7116+ 7117+ 7118+ 7119+MOZZLIB=1.2.3 7120+ 7121+# Check whether --with-system-zlib or --without-system-zlib was given. 7122+if test "${with_system_zlib+set}" = set; then 7123+ withval="$with_system_zlib" 7124+ ZLIB_DIR=$withval 7125+fi 7126+ 7127+ 7128+if test -z "$MOZ_ZLIB_LIBS$MOZ_ZLIB_CFLAGS$SKIP_LIBRARY_CHECKS"; then 7129+ _SAVE_CFLAGS=$CFLAGS 7130+ _SAVE_LDFLAGS=$LDFLAGS 7131+ _SAVE_LIBS=$LIBS 7132+ 7133+ if test -n "${ZLIB_DIR}" -a "${ZLIB_DIR}" != "yes"; then 7134+ MOZ_ZLIB_CFLAGS="-I${ZLIB_DIR}/include" 7135+ MOZ_ZLIB_LIBS="-L${ZLIB_DIR}/lib" 7136+ CFLAGS="$MOZ_ZLIB_CFLAGS $CFLAGS" 7137+ LDFLAGS="$MOZ_ZLIB_LIBS $LDFLAGS" 7138+ fi 7139+ if test -z "$ZLIB_DIR" -o "$ZLIB_DIR" = no; then 7140+ MOZ_SYSTEM_ZLIB= 7141+ else 7142+ echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6 7143+echo "configure:7127: checking for gzread in -lz" >&5 7144+ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'` 7145+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7146+ echo $ac_n "(cached) $ac_c" 1>&6 7147+else 7148+ ac_save_LIBS="$LIBS" 7149+LIBS="-lz $LIBS" 7150+cat > conftest.$ac_ext <<EOF 7151+#line 7135 "configure" 7152+#include "confdefs.h" 7153+/* Override any gcc2 internal prototype to avoid an error. */ 7154+/* We use char because int might match the return type of a gcc2 7155+ builtin and then its argument prototype would still apply. */ 7156+char gzread(); 7157+ 7158+int main() { 7159+gzread() 7160+; return 0; } 7161+EOF 7162+if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7163+ rm -rf conftest* 7164+ eval "ac_cv_lib_$ac_lib_var=yes" 7165+else 7166+ echo "configure: failed program was:" >&5 7167+ cat conftest.$ac_ext >&5 7168+ rm -rf conftest* 7169+ eval "ac_cv_lib_$ac_lib_var=no" 7170+fi 7171+rm -f conftest* 7172+LIBS="$ac_save_LIBS" 7173+ 7174+fi 7175+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7176+ echo "$ac_t""yes" 1>&6 7177+ MOZ_SYSTEM_ZLIB=1 MOZ_ZLIB_LIBS="$MOZ_ZLIB_LIBS -lz" 7178+else 7179+ echo "$ac_t""no" 1>&6 7180+MOZ_SYSTEM_ZLIB= 7181+fi 7182+ 7183+ if test "$MOZ_SYSTEM_ZLIB" = 1; then 7184+ MOZZLIBNUM=`echo $MOZZLIB | awk -F. '{printf "0x%x\n", ((($1 * 16 + $2) * 16) + $3) * 16 + $4}'` 7185+ cat > conftest.$ac_ext <<EOF 7186+#line 7170 "configure" 7187+#include "confdefs.h" 7188+ #include <stdio.h> 7189+ #include <string.h> 7190+ #include <zlib.h> 7191+int main() { 7192+ #if ZLIB_VERNUM < $MOZZLIBNUM 7193+ #error "Insufficient zlib version ($MOZZLIBNUM required)." 7194+ #endif 7195+; return 0; } 7196+EOF 7197+if { (eval echo configure:7181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7198+ rm -rf conftest* 7199+ MOZ_SYSTEM_ZLIB=1 7200+else 7201+ echo "configure: failed program was:" >&5 7202+ cat conftest.$ac_ext >&5 7203+ rm -rf conftest* 7204+ { echo "configure: error: Insufficient zlib version for --with-system-zlib ($MOZZLIB required)" 1>&2; echo "configure: error: Insufficient zlib version for --with-system-zlib ($MOZZLIB required)" 1>&5; exit 1; } 7205+fi 7206+rm -f conftest* 7207+ fi 7208+ fi 7209+ CFLAGS=$_SAVE_CFLAGS 7210+ LDFLAGS=$_SAVE_LDFLAGS 7211+ LIBS=$_SAVE_LIBS 7212+fi 7213+ 7214+ 7215+ 7216+ 7217+ 7218+ 7219+ 7220+if test -n "$ZLIB_IN_MOZGLUE"; then 7221+ cat >> confdefs.pytmp <<\EOF 7222+ (''' ZLIB_IN_MOZGLUE ''', ' 1 ') 7223+EOF 7224+cat >> confdefs.h <<\EOF 7225+#define ZLIB_IN_MOZGLUE 1 7226+EOF 7227+ 7228+fi 7229+ 7230+ 7231+ 7232+# Application 7233+ 7234+# Components and Features 7235+ 7236+# Individual module options 7237+ 7238+# Debugging and Optimizations 7239+ 7240+ 7241+# Use value from moz.configure if one is defined. Else use our computed 7242+# value. 7243+if test -n "${MOZ_CONFIGURE_OPTIMIZE_FLAGS}"; then 7244+ MOZ_OPTIMIZE_FLAGS=${MOZ_CONFIGURE_OPTIMIZE_FLAGS} 7245+fi 7246+ 7247+ 7248+ if test "$GNU_CC"; then 7249+ MOZ_ENABLE_FRAME_PTR="-fno-omit-frame-pointer -funwind-tables" 7250+ MOZ_DISABLE_FRAME_PTR="-fomit-frame-pointer -funwind-tables" 7251+ else 7252+ case "$target" in 7253+ aarch64-windows*) 7254+ if test "$CC_TYPE" = "clang-cl"; then 7255+ MOZ_ENABLE_FRAME_PTR="-Xclang -mdisable-fp-elim" 7256+ MOZ_DISABLE_FRAME_PTR="-Xclang -mdisable-fp-elim" 7257+ else 7258+ MOZ_ENABLE_FRAME_PTR="-Oy-" 7259+ MOZ_DISABLE_FRAME_PTR="-Oy" 7260+ fi 7261+ ;; 7262+ *-mingw32*) 7263+ MOZ_ENABLE_FRAME_PTR="-Oy-" 7264+ MOZ_DISABLE_FRAME_PTR="-Oy" 7265+ ;; 7266+ esac 7267+ fi 7268+ 7269+ # If we are debugging, profiling, using sanitizers, or on win32 we want a 7270+ # frame pointer. It is not required to enable frame pointers on AArch64 7271+ # Windows, but we enable it for compatibility with ETW. 7272+ if test -z "$MOZ_OPTIMIZE" -o \ 7273+ -n "$MOZ_PROFILING" -o \ 7274+ -n "$MOZ_DEBUG" -o \ 7275+ -n "$MOZ_MSAN" -o \ 7276+ -n "$MOZ_ASAN" -o \ 7277+ -n "$MOZ_UBSAN" -o \ 7278+ "$OS_ARCH:$CPU_ARCH" = "WINNT:x86" -o \ 7279+ "$OS_ARCH:$CPU_ARCH" = "WINNT:aarch64"; then 7280+ MOZ_FRAMEPTR_FLAGS="$MOZ_ENABLE_FRAME_PTR" 7281+ else 7282+ MOZ_FRAMEPTR_FLAGS="$MOZ_DISABLE_FRAME_PTR" 7283+ fi 7284+ 7285+ 7286+if test "$COMPILE_ENVIRONMENT"; then 7287+if test -n "$MOZ_OPTIMIZE"; then 7288+ echo $ac_n "checking for valid optimization flags""... $ac_c" 1>&6 7289+echo "configure:7273: checking for valid optimization flags" >&5 7290+ _SAVE_CFLAGS=$CFLAGS 7291+ CFLAGS="$CFLAGS $MOZ_OPTIMIZE_FLAGS" 7292+ cat > conftest.$ac_ext <<EOF 7293+#line 7277 "configure" 7294+#include "confdefs.h" 7295+#include <stdio.h> 7296+int main() { 7297+printf("Hello World\n"); 7298+; return 0; } 7299+EOF 7300+if { (eval echo configure:7284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7301+ rm -rf conftest* 7302+ _results=yes 7303+else 7304+ echo "configure: failed program was:" >&5 7305+ cat conftest.$ac_ext >&5 7306+ rm -rf conftest* 7307+ _results=no 7308+fi 7309+rm -f conftest* 7310+ echo "$ac_t""$_results" 1>&6 7311+ if test "$_results" = "no"; then 7312+ { echo "configure: error: These compiler flags are invalid: $MOZ_OPTIMIZE_FLAGS" 1>&2; echo "configure: error: These compiler flags are invalid: $MOZ_OPTIMIZE_FLAGS" 1>&5; exit 1; } 7313+ fi 7314+ CFLAGS=$_SAVE_CFLAGS 7315+ if test -n "$MOZ_LTO" -a -n "$CLANG_CC"; then 7316+ # When using llvm-based LTO, non numeric optimization levels are 7317+ # not supported by the linker, so force the linker to use -O2 ( 7318+ # which doesn't influence the level compilation units are actually 7319+ # compiled at). 7320+ case " $MOZ_OPTIMIZE_FLAGS " in 7321+ *\ -Os\ *|*\ -Oz\ *) 7322+ MOZ_OPTIMIZE_LDFLAGS="$MOZ_OPTIMIZE_LDFLAGS -O2" 7323+ ;; 7324+ esac 7325+ fi 7326+fi 7327+fi # COMPILE_ENVIRONMENT 7328+ 7329+ 7330+ 7331+ 7332+ 7333+ 7334+if test -z "$MOZ_ENABLE_WARNINGS_AS_ERRORS"; then 7335+ WARNINGS_AS_ERRORS='' 7336+fi 7337+ 7338+ 7339+if test "$JS_STANDALONE" -a -z "$MOZ_MEMORY"; then 7340+ MOZ_GLUE_IN_PROGRAM= 7341+else 7342+ case "${OS_TARGET}" in 7343+ Android|WINNT|Darwin) 7344+ MOZ_GLUE_IN_PROGRAM= 7345+ ;; 7346+ *) 7347+ MOZ_GLUE_IN_PROGRAM=1 7348+ cat >> confdefs.pytmp <<\EOF 7349+ (''' MOZ_GLUE_IN_PROGRAM ''', ' 1 ') 7350+EOF 7351+cat >> confdefs.h <<\EOF 7352+#define MOZ_GLUE_IN_PROGRAM 1 7353+EOF 7354+ 7355+ ;; 7356+ esac 7357+fi 7358+ 7359+if test "$MOZ_MEMORY"; then 7360+ case "${target}" in 7361+ *-mingw*) 7362+ export MOZ_NO_DEBUG_RTL=1 7363+ ;; 7364+ esac 7365+fi 7366+ 7367+ 7368+if test -n "$MOZ_INSTRUMENTS"; then 7369+ LIBS="$LIBS -framework CoreFoundation" 7370+fi 7371+ 7372+if test -n "$MOZ_DEBUG"; then 7373+ cat >> confdefs.pytmp <<\EOF 7374+ (''' JS_DEBUG ''', ' 1 ') 7375+EOF 7376+cat >> confdefs.h <<\EOF 7377+#define JS_DEBUG 1 7378+EOF 7379+ 7380+fi 7381+ 7382+ 7383+if test -n "$COMPILE_ENVIRONMENT"; then 7384+ 7385+ 7386+if test -n "$ENABLE_CLANG_PLUGIN"; then 7387+ if test -z "${CLANG_CC}${CLANG_CL}"; then 7388+ { echo "configure: error: Can't use clang plugin without clang." 1>&2; echo "configure: error: Can't use clang plugin without clang." 1>&5; exit 1; } 7389+ fi 7390+ 7391+ echo $ac_n "checking for llvm-config""... $ac_c" 1>&6 7392+echo "configure:7376: checking for llvm-config" >&5 7393+ if test -z "$LLVMCONFIG"; then 7394+ if test -n "$CLANG_CL"; then 7395+ CXX_COMPILER="$(dirname "$CXX")/clang" 7396+ else 7397+ CXX_COMPILER="${CXX}" 7398+ fi 7399+ LLVMCONFIG=`$CXX_COMPILER -print-prog-name=llvm-config` 7400+ fi 7401+ 7402+ if test -z "$LLVMCONFIG"; then 7403+ LLVMCONFIG=`which llvm-config` 7404+ fi 7405+ 7406+ if test ! -x "$LLVMCONFIG"; then 7407+ echo "$ac_t""not found" 1>&6 7408+ { echo "configure: error: Cannot find an llvm-config binary for building a clang plugin" 1>&2; echo "configure: error: Cannot find an llvm-config binary for building a clang plugin" 1>&5; exit 1; } 7409+ fi 7410+ 7411+ echo "$ac_t""$LLVMCONFIG" 1>&6 7412+ 7413+ if test -z "$LLVMCONFIG"; then 7414+ { echo "configure: error: Cannot find an llvm-config binary for building a clang plugin" 1>&2; echo "configure: error: Cannot find an llvm-config binary for building a clang plugin" 1>&5; exit 1; } 7415+ fi 7416+ LLVM_CXXFLAGS=`$LLVMCONFIG --cxxflags | sed -e 's/-isysroot [^ ]*//' -e 's/-gcc-toolchain [^ ]*//'` 7417+ 7418+ LLVM_LDFLAGS=`$LLVMCONFIG --ldflags | tr '\n' ' '` 7419+ 7420+ if test "${HOST_OS_ARCH}" = "Darwin"; then 7421+ CLANG_LDFLAGS="-Wl,-flat_namespace -Wl,-undefined,suppress" 7422+ CLANG_LDFLAGS="$CLANG_LDFLAGS `$LLVMCONFIG --prefix`/lib/libclangASTMatchers.a" 7423+ LLVM_LDFLAGS=`echo "$LLVM_LDFLAGS" | sed -E 's/-L[^ ]+\/clang\/lib//'` 7424+ elif test "${HOST_OS_ARCH}" = "WINNT"; then 7425+ CLANG_LDFLAGS="clangASTMatchers.lib clang.lib" 7426+ else 7427+ CLANG_LDFLAGS="-lclangASTMatchers" 7428+ fi 7429+ 7430+ if test -n "$CLANG_CL"; then 7431+ LLVM_REPLACE_CXXFLAGS='' 7432+ for arg in $LLVM_CXXFLAGS; do 7433+ arg=`echo "$arg"|sed -e 's/^\//-/' -e 's/\\\\/\//g'` 7434+ LLVM_REPLACE_CXXFLAGS="$LLVM_REPLACE_CXXFLAGS $arg" 7435+ done 7436+ LLVM_CXXFLAGS="$LLVM_REPLACE_CXXFLAGS" 7437+ 7438+ LLVM_REPLACE_LDFLAGS='' 7439+ for arg in $LLVM_LDFLAGS; do 7440+ arg=`echo "$arg"|sed -e 's/^\//-/' -e 's/\\\\/\//g'` 7441+ LLVM_REPLACE_LDFLAGS="$LLVM_REPLACE_LDFLAGS $arg" 7442+ done 7443+ LLVM_LDFLAGS="$LLVM_REPLACE_LDFLAGS" 7444+ 7445+ CLANG_REPLACE_LDFLAGS='' 7446+ for arg in $CLANG_LDFLAGS; do 7447+ arg=`echo "$arg"|sed -e 's/^\//-/' -e 's/\\\\/\//g'` 7448+ CLANG_REPLACE_LDFLAGS="$CLANG_REPLACE_LDFLAGS $arg" 7449+ done 7450+ CLANG_LDFLAGS="$CLANG_REPLACE_LDFLAGS" 7451+ fi 7452+ 7453+ echo $ac_n "checking for new ASTMatcher API""... $ac_c" 1>&6 7454+echo "configure:7438: checking for new ASTMatcher API" >&5 7455+if eval "test \"`echo '$''{'ac_cv_have_new_ASTMatcher_names'+set}'`\" = set"; then 7456+ echo $ac_n "(cached) $ac_c" 1>&6 7457+else 7458+ 7459+ 7460+ ac_ext=C 7461+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 7462+ac_cpp='$CXXCPP $CPPFLAGS' 7463+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 7464+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 7465+cross_compiling=$ac_cv_prog_cxx_cross 7466+ 7467+if test "$CC_TYPE" = "clang-cl"; then 7468+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 7469+fi 7470+ 7471+ _SAVE_CXXFLAGS="$CXXFLAGS" 7472+ _SAVE_CPPFLAGS="$CPPFLAGS" 7473+ _SAVE_CXX="$CXX" 7474+ _SAVE_MACOSX_DEPLOYMENT_TARGET="$MACOSX_DEPLOYMENT_TARGET" 7475+ unset MACOSX_DEPLOYMENT_TARGET 7476+ CXXFLAGS="${LLVM_CXXFLAGS}" 7477+ CPPFLAGS="" 7478+ CXX="${HOST_CXX}" 7479+ cat > conftest.$ac_ext <<EOF 7480+#line 7464 "configure" 7481+#include "confdefs.h" 7482+#include "clang/ASTMatchers/ASTMatchers.h" 7483+int main() { 7484+clang::ast_matchers::cxxConstructExpr(); 7485+; return 0; } 7486+EOF 7487+if { (eval echo configure:7471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7488+ rm -rf conftest* 7489+ ac_cv_have_new_ASTMatcher_names="yes" 7490+else 7491+ echo "configure: failed program was:" >&5 7492+ cat conftest.$ac_ext >&5 7493+ rm -rf conftest* 7494+ ac_cv_have_new_ASTMatcher_names="no" 7495+fi 7496+rm -f conftest* 7497+ CXX="$_SAVE_CXX" 7498+ CPPFLAGS="$_SAVE_CPPFLAGS" 7499+ CXXFLAGS="$_SAVE_CXXFLAGS" 7500+ export MACOSX_DEPLOYMENT_TARGET="$_SAVE_MACOSX_DEPLOYMENT_TARGET" 7501+ ac_ext=c 7502+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 7503+ac_cpp='$CPP $CPPFLAGS' 7504+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 7505+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 7506+cross_compiling=$ac_cv_prog_cc_cross 7507+ 7508+if test "$CC_TYPE" = "clang-cl"; then 7509+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 7510+fi 7511+ 7512+ 7513+fi 7514+ 7515+echo "$ac_t""$ac_cv_have_new_ASTMatcher_names" 1>&6 7516+ if test "$ac_cv_have_new_ASTMatcher_names" = "yes"; then 7517+ LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DHAVE_NEW_ASTMATCHER_NAMES" 7518+ fi 7519+ 7520+ echo $ac_n "checking for has with ignoringParenImpCasts""... $ac_c" 1>&6 7521+echo "configure:7505: checking for has with ignoringParenImpCasts" >&5 7522+if eval "test \"`echo '$''{'ac_cv_has_accepts_ignoringParenImpCasts'+set}'`\" = set"; then 7523+ echo $ac_n "(cached) $ac_c" 1>&6 7524+else 7525+ 7526+ 7527+ ac_ext=C 7528+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 7529+ac_cpp='$CXXCPP $CPPFLAGS' 7530+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 7531+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 7532+cross_compiling=$ac_cv_prog_cxx_cross 7533+ 7534+if test "$CC_TYPE" = "clang-cl"; then 7535+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 7536+fi 7537+ 7538+ _SAVE_CXXFLAGS="$CXXFLAGS" 7539+ _SAVE_CPPFLAGS="$CPPFLAGS" 7540+ _SAVE_CXX="$CXX" 7541+ _SAVE_MACOSX_DEPLOYMENT_TARGET="$MACOSX_DEPLOYMENT_TARGET" 7542+ unset MACOSX_DEPLOYMENT_TARGET 7543+ CXXFLAGS="${LLVM_CXXFLAGS}" 7544+ CPPFLAGS="" 7545+ CXX="${HOST_CXX}" 7546+ cat > conftest.$ac_ext <<EOF 7547+#line 7531 "configure" 7548+#include "confdefs.h" 7549+#include "clang/ASTMatchers/ASTMatchers.h" 7550+int main() { 7551+using namespace clang::ast_matchers; 7552+ expr(has(ignoringParenImpCasts(declRefExpr()))); 7553+ 7554+; return 0; } 7555+EOF 7556+if { (eval echo configure:7540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7557+ rm -rf conftest* 7558+ ac_cv_has_accepts_ignoringParenImpCasts="yes" 7559+else 7560+ echo "configure: failed program was:" >&5 7561+ cat conftest.$ac_ext >&5 7562+ rm -rf conftest* 7563+ ac_cv_has_accepts_ignoringParenImpCasts="no" 7564+fi 7565+rm -f conftest* 7566+ CXX="$_SAVE_CXX" 7567+ CPPFLAGS="$_SAVE_CPPFLAGS" 7568+ CXXFLAGS="$_SAVE_CXXFLAGS" 7569+ export MACOSX_DEPLOYMENT_TARGET="$_SAVE_MACOSX_DEPLOYMENT_TARGET" 7570+ ac_ext=c 7571+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 7572+ac_cpp='$CPP $CPPFLAGS' 7573+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 7574+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 7575+cross_compiling=$ac_cv_prog_cc_cross 7576+ 7577+if test "$CC_TYPE" = "clang-cl"; then 7578+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 7579+fi 7580+ 7581+ 7582+fi 7583+ 7584+echo "$ac_t""$ac_cv_has_accepts_ignoringParenImpCasts" 1>&6 7585+ if test "$ac_cv_has_accepts_ignoringParenImpCasts" = "yes"; then 7586+ LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DHAS_ACCEPTS_IGNORINGPARENIMPCASTS" 7587+ fi 7588+ 7589+ CLANG_PLUGIN_FLAGS="-Xclang -load -Xclang $CLANG_PLUGIN -Xclang -add-plugin -Xclang moz-check" 7590+ 7591+ cat >> confdefs.pytmp <<\EOF 7592+ (''' MOZ_CLANG_PLUGIN ''', ' 1 ') 7593+EOF 7594+cat >> confdefs.h <<\EOF 7595+#define MOZ_CLANG_PLUGIN 1 7596+EOF 7597+ 7598+fi 7599+ 7600+if test -n "$ENABLE_MOZSEARCH_PLUGIN"; then 7601+ if test -z "${ENABLE_CLANG_PLUGIN}"; then 7602+ { echo "configure: error: Can't use mozsearch plugin without --enable-clang-plugin." 1>&2; echo "configure: error: Can't use mozsearch plugin without --enable-clang-plugin." 1>&5; exit 1; } 7603+ fi 7604+ 7605+ OBJDIR="$(dirname $(dirname $(dirname $CLANG_PLUGIN)))" 7606+ 7607+ CLANG_PLUGIN_FLAGS="$CLANG_PLUGIN_FLAGS -Xclang -add-plugin -Xclang mozsearch-index" 7608+ 7609+ CLANG_PLUGIN_FLAGS="$CLANG_PLUGIN_FLAGS -Xclang -plugin-arg-mozsearch-index -Xclang $_topsrcdir" 7610+ CLANG_PLUGIN_FLAGS="$CLANG_PLUGIN_FLAGS -Xclang -plugin-arg-mozsearch-index -Xclang $OBJDIR/mozsearch_index" 7611+ CLANG_PLUGIN_FLAGS="$CLANG_PLUGIN_FLAGS -Xclang -plugin-arg-mozsearch-index -Xclang $OBJDIR" 7612+ 7613+ cat >> confdefs.pytmp <<\EOF 7614+ (''' MOZ_MOZSEARCH_PLUGIN ''', ' 1 ') 7615+EOF 7616+cat >> confdefs.h <<\EOF 7617+#define MOZ_MOZSEARCH_PLUGIN 1 7618+EOF 7619+ 7620+fi 7621+ 7622+ 7623+ 7624+ 7625+ 7626+ 7627+ 7628+ 7629+ 7630+ 7631+fi # COMPILE_ENVIRONMENT 7632+ 7633+ 7634+# Check whether --with-sixgill or --without-sixgill was given. 7635+if test "${with_sixgill+set}" = set; then 7636+ withval="$with_sixgill" 7637+ SIXGILL_PATH=$withval 7638+else 7639+ SIXGILL_PATH= 7640+fi 7641+ 7642+ 7643+if test -n "$SIXGILL_PATH"; then 7644+ if test ! -x "$SIXGILL_PATH/bin/xdbfind" || test ! -f "$SIXGILL_PATH/gcc/xgill.so" || test ! -x "$SIXGILL_PATH/scripts/wrap_gcc/g++"; then 7645+ { echo "configure: error: The sixgill plugin and binaries are not at the specified path." 1>&2; echo "configure: error: The sixgill plugin and binaries are not at the specified path." 1>&5; exit 1; } 7646+ fi 7647+fi 7648+ 7649+ 7650+# Check whether --enable-strip or --disable-strip was given. 7651+if test "${enable_strip+set}" = set; then 7652+ enableval="$enable_strip" 7653+ if test "$enableval" = "yes"; then 7654+ ENABLE_STRIP=1 7655+ elif test "$enableval" = "no"; then 7656+ ENABLE_STRIP= 7657+ else 7658+ { echo "configure: error: Option, strip, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, strip, does not take an argument ($enableval)." 1>&5; exit 1; } 7659+ fi 7660+fi 7661+ 7662+ 7663+# Check whether --enable-install-strip or --disable-install-strip was given. 7664+if test "${enable_install_strip+set}" = set; then 7665+ enableval="$enable_install_strip" 7666+ if test "$enableval" = "yes"; then 7667+ PKG_SKIP_STRIP= 7668+ elif test "$enableval" = "no"; then 7669+ PKG_SKIP_STRIP=1 7670+ else 7671+ { echo "configure: error: Option, install-strip, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, install-strip, does not take an argument ($enableval)." 1>&5; exit 1; } 7672+ fi 7673+fi 7674+ 7675+ 7676+# Profiling and Instrumenting 7677+ 7678+if test -z "$SKIP_LIBRARY_CHECKS"; then 7679+ 7680+ ac_ext=C 7681+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 7682+ac_cpp='$CXXCPP $CPPFLAGS' 7683+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 7684+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 7685+cross_compiling=$ac_cv_prog_cxx_cross 7686+ 7687+if test "$CC_TYPE" = "clang-cl"; then 7688+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 7689+fi 7690+ 7691+ for ac_func in __cxa_demangle 7692+do 7693+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7694+echo "configure:7678: checking for $ac_func" >&5 7695+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7696+ echo $ac_n "(cached) $ac_c" 1>&6 7697+else 7698+ cat > conftest.$ac_ext <<EOF 7699+#line 7683 "configure" 7700+#define $ac_func innocuous_$ac_func 7701+#include "confdefs.h" 7702+#undef $ac_func 7703+/* System header to define __stub macros and hopefully few prototypes, 7704+ which can conflict with char $ac_func(); below. */ 7705+#define $ac_func innocuous_$ac_func 7706+#include <assert.h> 7707+#undef $ac_func 7708+/* Override any gcc2 internal prototype to avoid an error. */ 7709+#ifdef __cplusplus 7710+extern "C" 7711+#endif 7712+/* We use char because int might match the return type of a gcc2 7713+ builtin and then its argument prototype would still apply. */ 7714+char $ac_func(); 7715+ 7716+int main() { 7717+ 7718+/* The GNU C library defines this for functions which it implements 7719+ to always fail with ENOSYS. Some functions are actually named 7720+ something starting with __ and the normal name is an alias. */ 7721+#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7722+choke me 7723+#else 7724+$ac_func(); 7725+#endif 7726+ 7727+; return 0; } 7728+EOF 7729+if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7730+ rm -rf conftest* 7731+ eval "ac_cv_func_$ac_func=yes" 7732+else 7733+ echo "configure: failed program was:" >&5 7734+ cat conftest.$ac_ext >&5 7735+ rm -rf conftest* 7736+ eval "ac_cv_func_$ac_func=no" 7737+fi 7738+rm -f conftest* 7739+fi 7740+ 7741+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7742+ echo "$ac_t""yes" 1>&6 7743+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7744+ cat >> confdefs.pytmp <<EOF 7745+ (''' $ac_tr_func ''', ' 1 ') 7746+EOF 7747+cat >> confdefs.h <<EOF 7748+#define $ac_tr_func 1 7749+EOF 7750+ HAVE_DEMANGLE=1 7751+else 7752+ echo "$ac_t""no" 1>&6 7753+HAVE_DEMANGLE= 7754+fi 7755+done 7756+ 7757+ ac_ext=c 7758+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 7759+ac_cpp='$CPP $CPPFLAGS' 7760+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 7761+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 7762+cross_compiling=$ac_cv_prog_cc_cross 7763+ 7764+if test "$CC_TYPE" = "clang-cl"; then 7765+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 7766+fi 7767+ 7768+fi 7769+ 7770+ 7771+# Check whether --with-jitreport-granularity or --without-jitreport-granularity was given. 7772+if test "${with_jitreport_granularity+set}" = set; then 7773+ withval="$with_jitreport_granularity" 7774+ JITREPORT_GRANULARITY=$withval 7775+else 7776+ JITREPORT_GRANULARITY=3 7777+fi 7778+ 7779+ 7780+cat >> confdefs.pytmp <<EOF 7781+ (''' JS_DEFAULT_JITREPORT_GRANULARITY ''', r''' $JITREPORT_GRANULARITY ''') 7782+EOF 7783+cat >> confdefs.h <<EOF 7784+#define JS_DEFAULT_JITREPORT_GRANULARITY $JITREPORT_GRANULARITY 7785+EOF 7786+ 7787+ 7788+# Misc. Options 7789+ 7790+if test -z "$SKIP_COMPILER_CHECKS"; then 7791+ 7792+# Compiler Options 7793+ 7794+echo $ac_n "checking for -pipe support""... $ac_c" 1>&6 7795+echo "configure:7779: checking for -pipe support" >&5 7796+if test -n "$GNU_CC" -a -n "$GNU_CXX"; then 7797+ CFLAGS="$CFLAGS -pipe" 7798+ CXXFLAGS="$CXXFLAGS -pipe" 7799+ echo "$ac_t""yes" 1>&6 7800+else 7801+ echo "$ac_t""no" 1>&6 7802+fi 7803+ 7804+ac_ext=C 7805+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 7806+ac_cpp='$CXXCPP $CPPFLAGS' 7807+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 7808+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 7809+cross_compiling=$ac_cv_prog_cxx_cross 7810+ 7811+if test "$CC_TYPE" = "clang-cl"; then 7812+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 7813+fi 7814+ 7815+ 7816+echo $ac_n "checking for tm_zone tm_gmtoff in struct tm""... $ac_c" 1>&6 7817+echo "configure:7801: checking for tm_zone tm_gmtoff in struct tm" >&5 7818+if eval "test \"`echo '$''{'ac_cv_struct_tm_zone_tm_gmtoff'+set}'`\" = set"; then 7819+ echo $ac_n "(cached) $ac_c" 1>&6 7820+else 7821+ cat > conftest.$ac_ext <<EOF 7822+#line 7806 "configure" 7823+#include "confdefs.h" 7824+#include <time.h> 7825+int main() { 7826+struct tm tm; tm.tm_zone = 0; tm.tm_gmtoff = 1; 7827+; return 0; } 7828+EOF 7829+if { (eval echo configure:7813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7830+ rm -rf conftest* 7831+ ac_cv_struct_tm_zone_tm_gmtoff="yes" 7832+else 7833+ echo "configure: failed program was:" >&5 7834+ cat conftest.$ac_ext >&5 7835+ rm -rf conftest* 7836+ ac_cv_struct_tm_zone_tm_gmtoff="no" 7837+fi 7838+rm -f conftest* 7839+fi 7840+ 7841+echo "$ac_t""$ac_cv_struct_tm_zone_tm_gmtoff" 1>&6 7842+if test "$ac_cv_struct_tm_zone_tm_gmtoff" = "yes" ; then 7843+ cat >> confdefs.pytmp <<\EOF 7844+ (''' HAVE_TM_ZONE_TM_GMTOFF ''', ' 1 ') 7845+EOF 7846+cat >> confdefs.h <<\EOF 7847+#define HAVE_TM_ZONE_TM_GMTOFF 1 7848+EOF 7849+ 7850+fi 7851+fi # ! SKIP_COMPILER_CHECKS 7852+ 7853+cat >> confdefs.pytmp <<\EOF 7854+ (''' CPP_THROW_NEW ''', r''' throw() ''') 7855+EOF 7856+cat >> confdefs.h <<\EOF 7857+#define CPP_THROW_NEW throw() 7858+EOF 7859+ 7860+ac_ext=c 7861+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 7862+ac_cpp='$CPP $CPPFLAGS' 7863+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 7864+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 7865+cross_compiling=$ac_cv_prog_cc_cross 7866+ 7867+if test "$CC_TYPE" = "clang-cl"; then 7868+ ac_link="$ac_compile"' && ${LINKER} -OUT:conftest${ac_exeext} $LDFLAGS conftest.obj $LIBS 1>&5' 7869+fi 7870+ 7871+ 7872+ 7873+ 7874+echo $ac_n "checking what kind of list files are supported by the linker""... $ac_c" 1>&6 7875+echo "configure:7859: checking what kind of list files are supported by the linker" >&5 7876+if eval "test \"`echo '$''{'EXPAND_LIBS_LIST_STYLE'+set}'`\" = set"; then 7877+ echo $ac_n "(cached) $ac_c" 1>&6 7878+else 7879+ echo "int main() {return 0;}" > conftest.${ac_ext} 7880+ if { ac_try='${CC-cc} -o conftest.${OBJ_SUFFIX} -c $MOZ_LTO_CFLAGS $CFLAGS $CPPFLAGS conftest.${ac_ext} 1>&5'; { (eval echo configure:7864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest.${OBJ_SUFFIX}; then 7881+ echo "INPUT(conftest.${OBJ_SUFFIX})" > conftest.list 7882+ if test "$CC_TYPE" = "clang-cl"; then 7883+ link="$LINKER -OUT:conftest${ac_exeext}" 7884+ else 7885+ link="${CC-cc} -o conftest${ac_exeext}" 7886+ fi 7887+ if { ac_try='$link $MOZ_LTO_LDFLAGS $LDFLAGS conftest.list $LIBS 1>&5'; { (eval echo configure:7871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest${ac_exeext}; then 7888+ EXPAND_LIBS_LIST_STYLE=linkerscript 7889+ else 7890+ echo "conftest.${OBJ_SUFFIX}" > conftest.list 7891+ if { ac_try='$link $MOZ_LTO_LDFLAGS $LDFLAGS -Wl,-filelist,conftest.list $LIBS 1>&5'; { (eval echo configure:7875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest${ac_exeext}; then 7892+ EXPAND_LIBS_LIST_STYLE=filelist 7893+ elif { ac_try='$link $MOZ_LTO_LDFLAGS $LDFLAGS @conftest.list $LIBS 1>&5'; { (eval echo configure:7877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest${ac_exeext}; then 7894+ EXPAND_LIBS_LIST_STYLE=list 7895+ else 7896+ { echo "configure: error: Couldn't find one that works" 1>&2; echo "configure: error: Couldn't find one that works" 1>&5; exit 1; } 7897+ fi 7898+ fi 7899+ else 7900+ { echo "configure: error: couldn't compile a simple C file" 1>&2; echo "configure: error: couldn't compile a simple C file" 1>&5; exit 1; } 7901+ fi 7902+ rm -rf conftest* 7903+fi 7904+ 7905+echo "$ac_t""$EXPAND_LIBS_LIST_STYLE" 1>&6 7906+ 7907+ 7908+ 7909+ 7910+ 7911+# Check whether --enable-readline or --disable-readline was given. 7912+if test "${enable_readline+set}" = set; then 7913+ enableval="$enable_readline" 7914+ if test "$enableval" = "yes"; then 7915+ JS_WANT_READLINE=1 7916+ elif test "$enableval" = "no"; then 7917+ JS_WANT_READLINE= 7918+ else 7919+ { echo "configure: error: Option, readline, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, readline, does not take an argument ($enableval)." 1>&5; exit 1; } 7920+ fi 7921+fi 7922+ 7923+ 7924+JS_BUNDLED_EDITLINE= 7925+EDITLINE_LIBS= 7926+ 7927+case "$target" in 7928+*-mingw*) 7929+ NO_EDITLINE=1 7930+ ;; 7931+*) 7932+ ;; 7933+esac 7934+ 7935+if test -z "$SKIP_LIBRARY_CHECKS" -a -z "$NO_EDITLINE"; then 7936+ if test -n "$JS_WANT_READLINE"; then 7937+ echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 7938+echo "configure:7922: checking for readline in -lreadline" >&5 7939+ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` 7940+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7941+ echo $ac_n "(cached) $ac_c" 1>&6 7942+else 7943+ ac_save_LIBS="$LIBS" 7944+LIBS="-lreadline $LIBS" 7945+cat > conftest.$ac_ext <<EOF 7946+#line 7930 "configure" 7947+#include "confdefs.h" 7948+/* Override any gcc2 internal prototype to avoid an error. */ 7949+/* We use char because int might match the return type of a gcc2 7950+ builtin and then its argument prototype would still apply. */ 7951+char readline(); 7952+ 7953+int main() { 7954+readline() 7955+; return 0; } 7956+EOF 7957+if { (eval echo configure:7941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7958+ rm -rf conftest* 7959+ eval "ac_cv_lib_$ac_lib_var=yes" 7960+else 7961+ echo "configure: failed program was:" >&5 7962+ cat conftest.$ac_ext >&5 7963+ rm -rf conftest* 7964+ eval "ac_cv_lib_$ac_lib_var=no" 7965+fi 7966+rm -f conftest* 7967+LIBS="$ac_save_LIBS" 7968+ 7969+fi 7970+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7971+ echo "$ac_t""yes" 1>&6 7972+ EDITLINE_LIBS="-lreadline" 7973+else 7974+ echo "$ac_t""no" 1>&6 7975+{ echo "configure: error: No system readline library found." 1>&2; echo "configure: error: No system readline library found." 1>&5; exit 1; } 7976+fi 7977+ 7978+ else 7979+ JS_BUNDLED_EDITLINE=1 7980+ fi 7981+ 7982+ cat >> confdefs.pytmp <<\EOF 7983+ (''' EDITLINE ''', ' 1 ') 7984+EOF 7985+cat >> confdefs.h <<\EOF 7986+#define EDITLINE 1 7987+EOF 7988+ 7989+fi 7990+ 7991+ 7992+ 7993+# Standalone module options (Not for building Mozilla) 7994+ 7995+ 7996+# Check whether --with-qemu-exe or --without-qemu-exe was given. 7997+if test "${with_qemu_exe+set}" = set; then 7998+ withval="$with_qemu_exe" 7999+ QEMU_EXE=$withval 8000+fi 8001+ 8002+ 8003+# Check whether --with-cross-lib or --without-cross-lib was given. 8004+if test "${with_cross_lib+set}" = set; then 8005+ withval="$with_cross_lib" 8006+ CROSS_LIB=$withval 8007+else 8008+ CROSS_LIB=/usr/$target 8009+fi 8010+ 8011+ 8012+ 8013+ 8014+ 8015+ 8016+ 8017+ 8018+ 8019+ 8020+ 8021+ 8022+ 8023+ 8024+ 8025+ 8026+ 8027+ 8028+ 8029+ 8030+ 8031+ 8032+ 8033+ 8034+ 8035+ 8036+ 8037+ 8038+_INTL_API=yes 8039+ 8040+ 8041+ 8042+MOZ_SYSTEM_ICU= 8043+# Check whether --with-system-icu or --without-system-icu was given. 8044+if test "${with_system_icu+set}" = set; then 8045+ withval="$with_system_icu" 8046+ if test "$withval" = "yes"; then 8047+ MOZ_SYSTEM_ICU=1 8048+ elif test "$withval" = "no"; then 8049+ : 8050+ else 8051+ { echo "configure: error: Option, system-icu, does not take an argument ($withval)." 1>&2; echo "configure: error: Option, system-icu, does not take an argument ($withval)." 1>&5; exit 1; } 8052+ fi 8053+fi 8054+ 8055+ 8056+if test -n "$MOZ_SYSTEM_ICU"; then 8057+ succeeded=no 8058+ 8059+ if test -z "$PKG_CONFIG"; then 8060+ echo "*** The pkg-config script could not be found. Make sure it is" 8061+ echo "*** in your path, or set the PKG_CONFIG environment variable" 8062+ echo "*** to the full path to pkg-config." 8063+ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 8064+ else 8065+ PKG_CONFIG_MIN_VERSION=0.9.0 8066+ if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8067+ echo $ac_n "checking for icu-i18n >= 63.1""... $ac_c" 1>&6 8068+echo "configure:8052: checking for icu-i18n >= 63.1" >&5 8069+ 8070+ if $PKG_CONFIG --exists "icu-i18n >= 63.1" ; then 8071+ echo "$ac_t""yes" 1>&6 8072+ succeeded=yes 8073+ 8074+ echo $ac_n "checking MOZ_ICU_CFLAGS""... $ac_c" 1>&6 8075+echo "configure:8059: checking MOZ_ICU_CFLAGS" >&5 8076+ MOZ_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n >= 63.1"` 8077+ echo "$ac_t""$MOZ_ICU_CFLAGS" 1>&6 8078+ 8079+ echo $ac_n "checking MOZ_ICU_LIBS""... $ac_c" 1>&6 8080+echo "configure:8064: checking MOZ_ICU_LIBS" >&5 8081+ ## Remove evil flags like -Wl,--export-dynamic 8082+ MOZ_ICU_LIBS="`$PKG_CONFIG --libs \"icu-i18n >= 63.1\" |sed s/-Wl,--export-dynamic//g`" 8083+ echo "$ac_t""$MOZ_ICU_LIBS" 1>&6 8084+ else 8085+ MOZ_ICU_CFLAGS="" 8086+ MOZ_ICU_LIBS="" 8087+ ## If we have a custom action on failure, don't print errors, but 8088+ ## do set a variable so people can do so. 8089+ MOZ_ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-i18n >= 63.1"` 8090+ echo $MOZ_ICU_PKG_ERRORS 8091+ fi 8092+ 8093+ 8094+ 8095+ else 8096+ echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 8097+ echo "*** See http://www.freedesktop.org/software/pkgconfig" 8098+ fi 8099+ fi 8100+ 8101+ if test $succeeded = yes; then 8102+ : 8103+ else 8104+ if test "$COMPILE_ENVIRONMENT"; then 8105+ { echo "configure: error: Library requirements (icu-i18n >= 63.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; echo "configure: error: Library requirements (icu-i18n >= 63.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&5; exit 1; } 8106+ fi 8107+ fi 8108+ 8109+ CFLAGS="$CFLAGS $MOZ_ICU_CFLAGS" 8110+ CXXFLAGS="$CXXFLAGS $MOZ_ICU_CFLAGS" 8111+ cat >> confdefs.pytmp <<\EOF 8112+ (''' MOZ_SYSTEM_ICU ''', ' 1 ') 8113+EOF 8114+cat >> confdefs.h <<\EOF 8115+#define MOZ_SYSTEM_ICU 1 8116+EOF 8117+ 8118+fi 8119+ 8120+ 8121+ 8122+# Check whether --with-intl-api or --without-intl-api was given. 8123+if test "${with_intl_api+set}" = set; then 8124+ withval="$with_intl_api" 8125+ _INTL_API=$withval 8126+fi 8127+ 8128+ 8129+ENABLE_INTL_API= 8130+EXPOSE_INTL_API= 8131+case "$_INTL_API" in 8132+no) 8133+ ;; 8134+build) 8135+ ENABLE_INTL_API=1 8136+ ;; 8137+yes) 8138+ ENABLE_INTL_API=1 8139+ EXPOSE_INTL_API=1 8140+ ;; 8141+*) 8142+ { echo "configure: error: Invalid value passed to --with-intl-api: $_INTL_API" 1>&2; echo "configure: error: Invalid value passed to --with-intl-api: $_INTL_API" 1>&5; exit 1; } 8143+ ;; 8144+esac 8145+ 8146+if test -n "$ENABLE_INTL_API"; then 8147+ USE_ICU=1 8148+fi 8149+ 8150+if test -n "$EXPOSE_INTL_API"; then 8151+ cat >> confdefs.pytmp <<\EOF 8152+ (''' EXPOSE_INTL_API ''', ' 1 ') 8153+EOF 8154+cat >> confdefs.h <<\EOF 8155+#define EXPOSE_INTL_API 1 8156+EOF 8157+ 8158+fi 8159+ 8160+if test -n "$ENABLE_INTL_API"; then 8161+ cat >> confdefs.pytmp <<\EOF 8162+ (''' ENABLE_INTL_API ''', ' 1 ') 8163+EOF 8164+cat >> confdefs.h <<\EOF 8165+#define ENABLE_INTL_API 1 8166+EOF 8167+ 8168+fi 8169+ 8170+if test -n "$USE_ICU"; then 8171+ icudir="$_topsrcdir/intl/icu/source" 8172+ if test ! -d "$icudir"; then 8173+ icudir="$_topsrcdir/../../intl/icu/source" 8174+ if test ! -d "$icudir"; then 8175+ { echo "configure: error: Cannot find the ICU directory" 1>&2; echo "configure: error: Cannot find the ICU directory" 1>&5; exit 1; } 8176+ fi 8177+ fi 8178+ 8179+ version=`sed -n 's/^[[:space:]]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"` 8180+ if test x"$version" = x; then 8181+ { echo "configure: error: cannot determine icu version number from uvernum.h header file $lineno" 1>&2; echo "configure: error: cannot determine icu version number from uvernum.h header file $lineno" 1>&5; exit 1; } 8182+ fi 8183+ MOZ_ICU_VERSION="$version" 8184+ 8185+ # TODO: the l is actually endian-dependent 8186+ # We could make this set as 'l' or 'b' for little or big, respectively, 8187+ # but we'd need to check in a big-endian version of the file. 8188+ if test -z "$ICU_DATA_FILE"; then 8189+ ICU_DATA_FILE="icudt${version}l.dat" 8190+ fi 8191+fi 8192+ 8193+ 8194+ 8195+ 8196+ 8197+ 8198+if test -n "$USE_ICU"; then 8199+ cat >> confdefs.pytmp <<\EOF 8200+ (''' U_USING_ICU_NAMESPACE ''', r''' 0 ''') 8201+EOF 8202+cat >> confdefs.h <<\EOF 8203+#define U_USING_ICU_NAMESPACE 0 8204+EOF 8205+ 8206+ 8207+ if test -z "$MOZ_SYSTEM_ICU"; then 8208+ case "$OS_TARGET:$CPU_ARCH" in 8209+ WINNT:aarch64) 8210+ ;; 8211+ *) 8212+ if test -z "$YASM" -a -z "$GNU_AS" -a "$COMPILE_ENVIRONMENT"; then 8213+ { echo "configure: error: Building ICU requires either yasm or a GNU assembler. If you do not have either of those available for this platform you must use --without-intl-api" 1>&2; echo "configure: error: Building ICU requires either yasm or a GNU assembler. If you do not have either of those available for this platform you must use --without-intl-api" 1>&5; exit 1; } 8214+ fi 8215+ ;; 8216+ esac 8217+ cat >> confdefs.pytmp <<\EOF 8218+ (''' U_STATIC_IMPLEMENTATION ''', ' 1 ') 8219+EOF 8220+cat >> confdefs.h <<\EOF 8221+#define U_STATIC_IMPLEMENTATION 1 8222+EOF 8223+ 8224+ fi 8225+fi 8226+ 8227+ 8228+CFLAGS=`echo \ 8229+ $_COMPILATION_CFLAGS \ 8230+ $CFLAGS` 8231+ 8232+CXXFLAGS=`echo \ 8233+ $_WARNINGS_CXXFLAGS \ 8234+ $_COMPILATION_CXXFLAGS \ 8235+ $CXXFLAGS` 8236+ 8237+COMPILE_CFLAGS=`echo \ 8238+ $_DEFINES_CFLAGS \ 8239+ $COMPILE_CFLAGS` 8240+ 8241+COMPILE_CXXFLAGS=`echo \ 8242+ $_DEFINES_CXXFLAGS \ 8243+ $COMPILE_CXXFLAGS` 8244+ 8245+HOST_CFLAGS=`echo \ 8246+ $_WARNINGS_HOST_CFLAGS \ 8247+ $_COMPILATION_HOST_CFLAGS \ 8248+ $HOST_CFLAGS` 8249+ 8250+HOST_CXXFLAGS=`echo \ 8251+ $_WARNINGS_HOST_CXXFLAGS \ 8252+ $_COMPILATION_HOST_CXXFLAGS \ 8253+ $HOST_CXXFLAGS` 8254+ 8255+ 8256+ 8257+OS_CFLAGS="$CFLAGS" 8258+OS_CXXFLAGS="$CXXFLAGS" 8259+OS_CPPFLAGS="$CPPFLAGS" 8260+OS_COMPILE_CFLAGS="$COMPILE_CFLAGS" 8261+OS_COMPILE_CXXFLAGS="$COMPILE_CXXFLAGS" 8262+OS_LDFLAGS="$LDFLAGS" 8263+OS_LIBS="$LIBS" 8264+ 8265+ 8266+ 8267+ 8268+ 8269+ 8270+ 8271+ 8272+ 8273+ 8274+ 8275+ 8276+ 8277+ 8278+ 8279+ 8280+ 8281+ 8282+ 8283+ 8284+ 8285+ 8286+ 8287+ 8288+ 8289+ 8290+ 8291+ 8292+for ac_func in posix_fadvise posix_fallocate 8293+do 8294+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8295+echo "configure:8279: checking for $ac_func" >&5 8296+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8297+ echo $ac_n "(cached) $ac_c" 1>&6 8298+else 8299+ cat > conftest.$ac_ext <<EOF 8300+#line 8284 "configure" 8301+#define $ac_func innocuous_$ac_func 8302+#include "confdefs.h" 8303+#undef $ac_func 8304+/* System header to define __stub macros and hopefully few prototypes, 8305+ which can conflict with char $ac_func(); below. */ 8306+#define $ac_func innocuous_$ac_func 8307+#include <assert.h> 8308+#undef $ac_func 8309+/* Override any gcc2 internal prototype to avoid an error. */ 8310+/* We use char because int might match the return type of a gcc2 8311+ builtin and then its argument prototype would still apply. */ 8312+char $ac_func(); 8313+ 8314+int main() { 8315+ 8316+/* The GNU C library defines this for functions which it implements 8317+ to always fail with ENOSYS. Some functions are actually named 8318+ something starting with __ and the normal name is an alias. */ 8319+#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8320+choke me 8321+#else 8322+$ac_func(); 8323+#endif 8324+ 8325+; return 0; } 8326+EOF 8327+if { (eval echo configure:8311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8328+ rm -rf conftest* 8329+ eval "ac_cv_func_$ac_func=yes" 8330+else 8331+ echo "configure: failed program was:" >&5 8332+ cat conftest.$ac_ext >&5 8333+ rm -rf conftest* 8334+ eval "ac_cv_func_$ac_func=no" 8335+fi 8336+rm -f conftest* 8337+fi 8338+ 8339+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8340+ echo "$ac_t""yes" 1>&6 8341+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 8342+ cat >> confdefs.pytmp <<EOF 8343+ (''' $ac_tr_func ''', ' 1 ') 8344+EOF 8345+cat >> confdefs.h <<EOF 8346+#define $ac_tr_func 1 8347+EOF 8348+ 8349+else 8350+ echo "$ac_t""no" 1>&6 8351+fi 8352+done 8353+ 8354+ 8355+ 8356+ 8357+if test -n "$MOZ_DEV_EDITION"; then 8358+ cat >> confdefs.pytmp <<\EOF 8359+ (''' MOZ_DEV_EDITION ''', ' 1 ') 8360+EOF 8361+cat >> confdefs.h <<\EOF 8362+#define MOZ_DEV_EDITION 1 8363+EOF 8364+ 8365+fi 8366+ 8367+# Allow influencing configure with a defines.sh script. 8368+. "${srcdir}/build/defines.sh" 8369+ 8370+# If we're not building a release build, define EARLY_BETA_OR_EARLIER if it is 8371+# set in defines.sh 8372+if test "$BUILDING_RELEASE"; then 8373+ # Override value in defines.sh, if any 8374+ EARLY_BETA_OR_EARLIER= 8375+elif test "$EARLY_BETA_OR_EARLIER"; then 8376+ cat >> confdefs.pytmp <<\EOF 8377+ (''' EARLY_BETA_OR_EARLIER ''', ' 1 ') 8378+EOF 8379+cat >> confdefs.h <<\EOF 8380+#define EARLY_BETA_OR_EARLIER 1 8381+EOF 8382+ 8383+fi 8384+ 8385+ 8386+BINDGEN_SYSTEM_FLAGS="$_BINDGEN_CFLAGS $NSPR_CFLAGS" 8387+ 8388+ 8389+ 8390+ 8391+ 8392+ 8393+ 8394+ 8395+MALLOC_HEADERS="malloc.h malloc_np.h malloc/malloc.h sys/malloc.h" 8396+MALLOC_H= 8397+ 8398+for file in $MALLOC_HEADERS; do 8399+ ac_safe=`echo "$file" | sed 'y%./+-%__p_%'` 8400+ echo $ac_n "checking for $file""... $ac_c" 1>&6 8401+echo "configure:8385: checking for $file" >&5 8402+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8403+ echo $ac_n "(cached) $ac_c" 1>&6 8404+else 8405+ cat > conftest.$ac_ext <<EOF 8406+#line 8390 "configure" 8407+#include "confdefs.h" 8408+ 8409+#include <$file> 8410+int main() { 8411+ 8412+; return 0; } 8413+EOF 8414+if { (eval echo configure:8398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8415+ rm -rf conftest* 8416+ eval "ac_cv_header_$ac_safe=yes" 8417+else 8418+ echo "configure: failed program was:" >&5 8419+ cat conftest.$ac_ext >&5 8420+ rm -rf conftest* 8421+ eval "ac_cv_header_$ac_safe=no" 8422+fi 8423+rm -f conftest* 8424+fi 8425+ 8426+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8427+ echo "$ac_t""yes" 1>&6 8428+ MALLOC_H=$file 8429+ else 8430+ echo "$ac_t""no" 1>&6 8431+ 8432+ fi 8433+ 8434+ if test "$MALLOC_H" != ""; then 8435+ cat >> confdefs.pytmp <<EOF 8436+ (''' MALLOC_H ''', r''' <$MALLOC_H> ''') 8437+EOF 8438+cat >> confdefs.h <<EOF 8439+#define MALLOC_H <$MALLOC_H> 8440+EOF 8441+ 8442+ break 8443+ fi 8444+done 8445+ 8446+for ac_func in strndup posix_memalign memalign 8447+do 8448+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8449+echo "configure:8433: checking for $ac_func" >&5 8450+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8451+ echo $ac_n "(cached) $ac_c" 1>&6 8452+else 8453+ cat > conftest.$ac_ext <<EOF 8454+#line 8438 "configure" 8455+#define $ac_func innocuous_$ac_func 8456+#include "confdefs.h" 8457+#undef $ac_func 8458+/* System header to define __stub macros and hopefully few prototypes, 8459+ which can conflict with char $ac_func(); below. */ 8460+#define $ac_func innocuous_$ac_func 8461+#include <assert.h> 8462+#undef $ac_func 8463+/* Override any gcc2 internal prototype to avoid an error. */ 8464+/* We use char because int might match the return type of a gcc2 8465+ builtin and then its argument prototype would still apply. */ 8466+char $ac_func(); 8467+ 8468+int main() { 8469+ 8470+/* The GNU C library defines this for functions which it implements 8471+ to always fail with ENOSYS. Some functions are actually named 8472+ something starting with __ and the normal name is an alias. */ 8473+#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8474+choke me 8475+#else 8476+$ac_func(); 8477+#endif 8478+ 8479+; return 0; } 8480+EOF 8481+if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8482+ rm -rf conftest* 8483+ eval "ac_cv_func_$ac_func=yes" 8484+else 8485+ echo "configure: failed program was:" >&5 8486+ cat conftest.$ac_ext >&5 8487+ rm -rf conftest* 8488+ eval "ac_cv_func_$ac_func=no" 8489+fi 8490+rm -f conftest* 8491+fi 8492+ 8493+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8494+ echo "$ac_t""yes" 1>&6 8495+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 8496+ cat >> confdefs.pytmp <<EOF 8497+ (''' $ac_tr_func ''', ' 1 ') 8498+EOF 8499+cat >> confdefs.h <<EOF 8500+#define $ac_tr_func 1 8501+EOF 8502+ 8503+else 8504+ echo "$ac_t""no" 1>&6 8505+fi 8506+done 8507+ 8508+ 8509+for ac_func in malloc_usable_size 8510+do 8511+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8512+echo "configure:8496: checking for $ac_func" >&5 8513+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8514+ echo $ac_n "(cached) $ac_c" 1>&6 8515+else 8516+ cat > conftest.$ac_ext <<EOF 8517+#line 8501 "configure" 8518+#define $ac_func innocuous_$ac_func 8519+#include "confdefs.h" 8520+#undef $ac_func 8521+/* System header to define __stub macros and hopefully few prototypes, 8522+ which can conflict with char $ac_func(); below. */ 8523+#define $ac_func innocuous_$ac_func 8524+#include <assert.h> 8525+#undef $ac_func 8526+/* Override any gcc2 internal prototype to avoid an error. */ 8527+/* We use char because int might match the return type of a gcc2 8528+ builtin and then its argument prototype would still apply. */ 8529+char $ac_func(); 8530+ 8531+int main() { 8532+ 8533+/* The GNU C library defines this for functions which it implements 8534+ to always fail with ENOSYS. Some functions are actually named 8535+ something starting with __ and the normal name is an alias. */ 8536+#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8537+choke me 8538+#else 8539+$ac_func(); 8540+#endif 8541+ 8542+; return 0; } 8543+EOF 8544+if { (eval echo configure:8528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8545+ rm -rf conftest* 8546+ eval "ac_cv_func_$ac_func=yes" 8547+else 8548+ echo "configure: failed program was:" >&5 8549+ cat conftest.$ac_ext >&5 8550+ rm -rf conftest* 8551+ eval "ac_cv_func_$ac_func=no" 8552+fi 8553+rm -f conftest* 8554+fi 8555+ 8556+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8557+ echo "$ac_t""yes" 1>&6 8558+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 8559+ cat >> confdefs.pytmp <<EOF 8560+ (''' $ac_tr_func ''', ' 1 ') 8561+EOF 8562+cat >> confdefs.h <<EOF 8563+#define $ac_tr_func 1 8564+EOF 8565+ 8566+else 8567+ echo "$ac_t""no" 1>&6 8568+fi 8569+done 8570+ 8571+MALLOC_USABLE_SIZE_CONST_PTR=const 8572+if test -n "$HAVE_MALLOC_H"; then 8573+ echo $ac_n "checking whether malloc_usable_size definition can use const argument""... $ac_c" 1>&6 8574+echo "configure:8558: checking whether malloc_usable_size definition can use const argument" >&5 8575+ cat > conftest.$ac_ext <<EOF 8576+#line 8560 "configure" 8577+#include "confdefs.h" 8578+#include <malloc.h> 8579+ #include <stddef.h> 8580+ size_t malloc_usable_size(const void *ptr); 8581+int main() { 8582+return malloc_usable_size(0); 8583+; return 0; } 8584+EOF 8585+if { (eval echo configure:8569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8586+ rm -rf conftest* 8587+ echo "$ac_t""yes" 1>&6 8588+else 8589+ echo "configure: failed program was:" >&5 8590+ cat conftest.$ac_ext >&5 8591+ rm -rf conftest* 8592+ echo "$ac_t""no" 1>&6 8593+ MALLOC_USABLE_SIZE_CONST_PTR= 8594+fi 8595+rm -f conftest* 8596+fi 8597+cat >> confdefs.pytmp <<EOF 8598+ (''' MALLOC_USABLE_SIZE_CONST_PTR ''', r''' $MALLOC_USABLE_SIZE_CONST_PTR ''') 8599+EOF 8600+cat >> confdefs.h <<EOF 8601+#define MALLOC_USABLE_SIZE_CONST_PTR $MALLOC_USABLE_SIZE_CONST_PTR 8602+EOF 8603+ 8604+ 8605+ 8606+echo $ac_n "checking for valloc in malloc.h""... $ac_c" 1>&6 8607+echo "configure:8591: checking for valloc in malloc.h" >&5 8608+cat > conftest.$ac_ext <<EOF 8609+#line 8593 "configure" 8610+#include "confdefs.h" 8611+#include <malloc.h> 8612+EOF 8613+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8614+ egrep "valloc" >/dev/null 2>&1; then 8615+ rm -rf conftest* 8616+ cat >> confdefs.pytmp <<\EOF 8617+ (''' HAVE_VALLOC ''', ' 1 ') 8618+EOF 8619+cat >> confdefs.h <<\EOF 8620+#define HAVE_VALLOC 1 8621+EOF 8622+ 8623+ echo "$ac_t""yes" 1>&6 8624+else 8625+ rm -rf conftest* 8626+ echo "$ac_t""no" 1>&6 8627+fi 8628+rm -f conftest* 8629+ 8630+ 8631+echo $ac_n "checking for valloc in unistd.h""... $ac_c" 1>&6 8632+echo "configure:8616: checking for valloc in unistd.h" >&5 8633+cat > conftest.$ac_ext <<EOF 8634+#line 8618 "configure" 8635+#include "confdefs.h" 8636+#include <unistd.h> 8637+EOF 8638+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8639+ egrep "valloc" >/dev/null 2>&1; then 8640+ rm -rf conftest* 8641+ cat >> confdefs.pytmp <<\EOF 8642+ (''' HAVE_VALLOC ''', ' 1 ') 8643+EOF 8644+cat >> confdefs.h <<\EOF 8645+#define HAVE_VALLOC 1 8646+EOF 8647+ 8648+ echo "$ac_t""yes" 1>&6 8649+else 8650+ rm -rf conftest* 8651+ echo "$ac_t""no" 1>&6 8652+fi 8653+rm -f conftest* 8654+ 8655+ 8656+echo $ac_n "checking for _aligned_malloc in malloc.h""... $ac_c" 1>&6 8657+echo "configure:8641: checking for _aligned_malloc in malloc.h" >&5 8658+cat > conftest.$ac_ext <<EOF 8659+#line 8643 "configure" 8660+#include "confdefs.h" 8661+#include <malloc.h> 8662+EOF 8663+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8664+ egrep "_aligned_malloc" >/dev/null 2>&1; then 8665+ rm -rf conftest* 8666+ cat >> confdefs.pytmp <<\EOF 8667+ (''' HAVE_ALIGNED_MALLOC ''', ' 1 ') 8668+EOF 8669+cat >> confdefs.h <<\EOF 8670+#define HAVE_ALIGNED_MALLOC 1 8671+EOF 8672+ 8673+ echo "$ac_t""yes" 1>&6 8674+else 8675+ rm -rf conftest* 8676+ echo "$ac_t""no" 1>&6 8677+fi 8678+rm -f conftest* 8679+ 8680+ 8681+ 8682+ 8683+ 8684+ 8685+ 8686+if test -n "$JS_STANDALONE"; then 8687+MOZ_APP_NAME="mozjs" 8688+JS_LIBRARY_NAME="mozjs-$MOZILLA_SYMBOLVERSION" 8689+else 8690+JS_LIBRARY_NAME="mozjs" 8691+fi 8692+JS_CONFIG_LIBS="$NSPR_LIBS $LIBS" 8693+if test -n "$GNU_CC"; then 8694+JS_CONFIG_MOZ_JS_LIBS='-L${libdir} -l${JS_LIBRARY_NAME}' 8695+else 8696+JS_CONFIG_MOZ_JS_LIBS='${libdir}/${JS_LIBRARY_NAME}.lib' 8697+fi 8698+ 8699+ 8700+ 8701+ 8702+# Avoid using obsolete NSPR features 8703+cat >> confdefs.pytmp <<\EOF 8704+ (''' NO_NSPR_10_SUPPORT ''', ' 1 ') 8705+EOF 8706+cat >> confdefs.h <<\EOF 8707+#define NO_NSPR_10_SUPPORT 1 8708+EOF 8709+ 8710+ 8711+top_srcdir=$srcdir 8712+ 8713+ 8714+trap '' 1 2 15 8715+cat > confcache <<\EOF 8716+# This file is a shell script that caches the results of configure 8717+# tests run on this system so they can be shared between configure 8718+# scripts and configure runs. It is not useful on other systems. 8719+# If it contains results you don't want to keep, you may remove or edit it. 8720+# 8721+# By default, configure uses ./config.cache as the cache file, 8722+# creating it if it does not exist already. You can give configure 8723+# the --cache-file=FILE option to use a different cache file; that is 8724+# what configure does when it calls configure scripts in 8725+# subdirectories, so they share the cache. 8726+# Giving --cache-file=/dev/null disables caching, for debugging configure. 8727+# config.status only pays attention to the cache file if you give it the 8728+# --recheck option to rerun configure. 8729+# 8730+EOF 8731+# The following way of writing the cache mishandles newlines in values, 8732+# but we know of no workaround that is simple, portable, and efficient. 8733+# So, don't put newlines in cache variables' values. 8734+# Ultrix sh set writes to stderr and can't be redirected directly, 8735+# and sets the high bit in the cache file unless we assign to the vars. 8736+(set) 2>&1 | 8737+ case `(ac_space=' '; set | grep ac_space) 2>&1` in 8738+ *ac_space=\ *) 8739+ # `set' does not quote correctly, so add quotes (double-quote substitution 8740+ # turns \\\\ into \\, and sed turns \\ into \). 8741+ sed -n \ 8742+ -e "s/'/'\\\\''/g" \ 8743+ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 8744+ ;; 8745+ *) 8746+ # `set' quotes correctly as required by POSIX, so do not add quotes. 8747+ sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 8748+ ;; 8749+ esac >> confcache 8750+if cmp -s $cache_file confcache; then 8751+ : 8752+else 8753+ if test -w $cache_file; then 8754+ echo "updating cache $cache_file" 8755+ cat confcache > $cache_file 8756+ else 8757+ echo "not updating unwritable cache $cache_file" 8758+ fi 8759+fi 8760+rm -f confcache 8761+ 8762+ 8763+trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 8764+: ${CONFIG_STATUS=./config.data} 8765+ 8766+echo creating $CONFIG_STATUS 8767+ 8768+cat > $CONFIG_STATUS <<EOF 8769+ 8770+defines = [ 8771+EOF 8772+ 8773+sed 's/$/,/' confdefs.pytmp >> $CONFIG_STATUS 8774+rm confdefs.pytmp confdefs.h 8775+ 8776+cat >> $CONFIG_STATUS <<\EOF 8777+] 8778+ 8779+substs = [ 8780+EOF 8781+ 8782+sed 's/$/,/' >> $CONFIG_STATUS <<EOF 8783+ (''' SHELL ''', r''' $SHELL ''') 8784+ (''' exec_prefix ''', r''' $exec_prefix ''') 8785+ (''' prefix ''', r''' $prefix ''') 8786+ (''' program_transform_name ''', r''' $program_transform_name ''') 8787+ (''' bindir ''', r''' $bindir ''') 8788+ (''' sbindir ''', r''' $sbindir ''') 8789+ (''' libexecdir ''', r''' $libexecdir ''') 8790+ (''' datadir ''', r''' $datadir ''') 8791+ (''' sysconfdir ''', r''' $sysconfdir ''') 8792+ (''' sharedstatedir ''', r''' $sharedstatedir ''') 8793+ (''' localstatedir ''', r''' $localstatedir ''') 8794+ (''' libdir ''', r''' $libdir ''') 8795+ (''' includedir ''', r''' $includedir ''') 8796+ (''' oldincludedir ''', r''' $oldincludedir ''') 8797+ (''' infodir ''', r''' $infodir ''') 8798+ (''' mandir ''', r''' $mandir ''') 8799+ (''' host ''', r''' $host ''') 8800+ (''' host_alias ''', r''' $host_alias ''') 8801+ (''' host_cpu ''', r''' $host_cpu ''') 8802+ (''' host_vendor ''', r''' $host_vendor ''') 8803+ (''' host_os ''', r''' $host_os ''') 8804+ (''' target ''', r''' $target ''') 8805+ (''' target_alias ''', r''' $target_alias ''') 8806+ (''' target_cpu ''', r''' $target_cpu ''') 8807+ (''' target_vendor ''', r''' $target_vendor ''') 8808+ (''' target_os ''', r''' $target_os ''') 8809+ (''' build ''', r''' $build ''') 8810+ (''' build_alias ''', r''' $build_alias ''') 8811+ (''' build_cpu ''', r''' $build_cpu ''') 8812+ (''' build_vendor ''', r''' $build_vendor ''') 8813+ (''' build_os ''', r''' $build_os ''') 8814+ (''' autoconfmk ''', r''' $autoconfmk ''') 8815+ (''' ANDROID_PLATFORM ''', r''' $ANDROID_PLATFORM ''') 8816+ (''' MOZ_IOS ''', r''' $MOZ_IOS ''') 8817+ (''' CC ''', r''' $CC ''') 8818+ (''' CXX ''', r''' $CXX ''') 8819+ (''' RANLIB ''', r''' $RANLIB ''') 8820+ (''' AS ''', r''' $AS ''') 8821+ (''' LIPO ''', r''' $LIPO ''') 8822+ (''' STRIP ''', r''' $STRIP ''') 8823+ (''' OTOOL ''', r''' $OTOOL ''') 8824+ (''' INSTALL_NAME_TOOL ''', r''' $INSTALL_NAME_TOOL ''') 8825+ (''' OBJCOPY ''', r''' $OBJCOPY ''') 8826+ (''' CLANG_CXX ''', r''' $CLANG_CXX ''') 8827+ (''' CLANG_CL ''', r''' $CLANG_CL ''') 8828+ (''' MSVC_C_RUNTIME_DLL ''', r''' $MSVC_C_RUNTIME_DLL ''') 8829+ (''' MSVC_CXX_RUNTIME_DLL ''', r''' $MSVC_CXX_RUNTIME_DLL ''') 8830+ (''' SBCONF ''', r''' $SBCONF ''') 8831+ (''' QEMU_CANT_RUN_JS_SHELL ''', r''' $QEMU_CANT_RUN_JS_SHELL ''') 8832+ (''' GNU_CC ''', r''' $GNU_CC ''') 8833+ (''' GNU_CXX ''', r''' $GNU_CXX ''') 8834+ (''' X_CFLAGS ''', r''' $X_CFLAGS ''') 8835+ (''' X_PRE_LIBS ''', r''' $X_PRE_LIBS ''') 8836+ (''' X_LIBS ''', r''' $X_LIBS ''') 8837+ (''' X_EXTRA_LIBS ''', r''' $X_EXTRA_LIBS ''') 8838+ (''' JS_SHELL_NAME ''', r''' $JS_SHELL_NAME ''') 8839+ (''' JS_CONFIG_NAME ''', r''' $JS_CONFIG_NAME ''') 8840+ (''' MOZJS_MAJOR_VERSION ''', r''' $MOZJS_MAJOR_VERSION ''') 8841+ (''' MOZJS_MINOR_VERSION ''', r''' $MOZJS_MINOR_VERSION ''') 8842+ (''' MOZJS_PATCH_VERSION ''', r''' $MOZJS_PATCH_VERSION ''') 8843+ (''' MOZJS_ALPHA ''', r''' $MOZJS_ALPHA ''') 8844+ (''' ANDROID_CPU_ARCH ''', r''' $ANDROID_CPU_ARCH ''') 8845+ (''' STLPORT_LIBS ''', list(split(r''' $STLPORT_LIBS '''))) 8846+ (''' MOZ_CLANG_RT_ASAN_LIB_PATH ''', r''' $MOZ_CLANG_RT_ASAN_LIB_PATH ''') 8847+ (''' LLVM_SYMBOLIZER ''', r''' $LLVM_SYMBOLIZER ''') 8848+ (''' MOZ_ASAN ''', r''' $MOZ_ASAN ''') 8849+ (''' MOZ_MSAN ''', r''' $MOZ_MSAN ''') 8850+ (''' MOZ_TSAN ''', r''' $MOZ_TSAN ''') 8851+ (''' MOZ_UBSAN ''', r''' $MOZ_UBSAN ''') 8852+ (''' MOZ_SIGNED_OVERFLOW_SANITIZE ''', r''' $MOZ_SIGNED_OVERFLOW_SANITIZE ''') 8853+ (''' MOZ_UNSIGNED_OVERFLOW_SANITIZE ''', r''' $MOZ_UNSIGNED_OVERFLOW_SANITIZE ''') 8854+ (''' MOZ_NO_DEBUG_RTL ''', r''' $MOZ_NO_DEBUG_RTL ''') 8855+ (''' MOZ_DEBUG_DEFINES ''', list(split(r''' $MOZ_DEBUG_DEFINES '''))) 8856+ (''' LD_PRINT_ICF_SECTIONS ''', r''' $LD_PRINT_ICF_SECTIONS ''') 8857+ (''' MOZ_PROGRAM_LDFLAGS ''', r''' $MOZ_PROGRAM_LDFLAGS ''') 8858+ (''' MOZ_NEEDS_LIBATOMIC ''', r''' $MOZ_NEEDS_LIBATOMIC ''') 8859+ (''' HAVE_DTRACE ''', r''' $HAVE_DTRACE ''') 8860+ (''' HAVE_CLOCK_MONOTONIC ''', r''' $HAVE_CLOCK_MONOTONIC ''') 8861+ (''' REALTIME_LIBS ''', list(split(r''' $REALTIME_LIBS '''))) 8862+ (''' HAVE_LANGINFO_CODESET ''', r''' $HAVE_LANGINFO_CODESET ''') 8863+ (''' MOZ_BUILD_NSPR ''', r''' $MOZ_BUILD_NSPR ''') 8864+ (''' JS_POSIX_NSPR ''', r''' $JS_POSIX_NSPR ''') 8865+ (''' NSPR_CONFIG ''', r''' $NSPR_CONFIG ''') 8866+ (''' NSPR_CFLAGS ''', list(split(r''' $NSPR_CFLAGS '''))) 8867+ (''' NSPR_LIBS ''', list(split(r''' $NSPR_LIBS '''))) 8868+ (''' NSPR_INCLUDE_DIR ''', r''' $NSPR_INCLUDE_DIR ''') 8869+ (''' NSPR_LIB_DIR ''', r''' $NSPR_LIB_DIR ''') 8870+ (''' PKGCONF_REQUIRES_PRIVATE ''', r''' $PKGCONF_REQUIRES_PRIVATE ''') 8871+ (''' MOZ_ZLIB_CFLAGS ''', list(split(r''' $MOZ_ZLIB_CFLAGS '''))) 8872+ (''' MOZ_ZLIB_LIBS ''', list(split(r''' $MOZ_ZLIB_LIBS '''))) 8873+ (''' MOZ_SYSTEM_ZLIB ''', r''' $MOZ_SYSTEM_ZLIB ''') 8874+ (''' ZLIB_IN_MOZGLUE ''', r''' $ZLIB_IN_MOZGLUE ''') 8875+ (''' MOZ_FRAMEPTR_FLAGS ''', list(split(r''' $MOZ_FRAMEPTR_FLAGS '''))) 8876+ (''' MOZ_OPTIMIZE_FLAGS ''', list(split(r''' $MOZ_OPTIMIZE_FLAGS '''))) 8877+ (''' MOZ_OPTIMIZE_LDFLAGS ''', list(split(r''' $MOZ_OPTIMIZE_LDFLAGS '''))) 8878+ (''' MOZ_PGO_OPTIMIZE_FLAGS ''', list(split(r''' $MOZ_PGO_OPTIMIZE_FLAGS '''))) 8879+ (''' MOZ_GLUE_IN_PROGRAM ''', r''' $MOZ_GLUE_IN_PROGRAM ''') 8880+ (''' CLANG_PLUGIN_FLAGS ''', list(split(r''' $CLANG_PLUGIN_FLAGS '''))) 8881+ (''' LLVM_CXXFLAGS ''', list(split(r''' $LLVM_CXXFLAGS '''))) 8882+ (''' LLVM_LDFLAGS ''', list(split(r''' $LLVM_LDFLAGS '''))) 8883+ (''' CLANG_LDFLAGS ''', list(split(r''' $CLANG_LDFLAGS '''))) 8884+ (''' ENABLE_CLANG_PLUGIN ''', r''' $ENABLE_CLANG_PLUGIN ''') 8885+ (''' ENABLE_MOZSEARCH_PLUGIN ''', r''' $ENABLE_MOZSEARCH_PLUGIN ''') 8886+ (''' SIXGILL_PATH ''', r''' $SIXGILL_PATH ''') 8887+ (''' EXPAND_LIBS_LIST_STYLE ''', r''' $EXPAND_LIBS_LIST_STYLE ''') 8888+ (''' JS_BUNDLED_EDITLINE ''', r''' $JS_BUNDLED_EDITLINE ''') 8889+ (''' EDITLINE_LIBS ''', list(split(r''' $EDITLINE_LIBS '''))) 8890+ (''' QEMU_EXE ''', r''' $QEMU_EXE ''') 8891+ (''' CROSS_LIB ''', r''' $CROSS_LIB ''') 8892+ (''' NM ''', r''' $NM ''') 8893+ (''' ASFLAGS ''', list(split(r''' $ASFLAGS '''))) 8894+ (''' RCFLAGS ''', r''' $RCFLAGS ''') 8895+ (''' WINDRES ''', r''' $WINDRES ''') 8896+ (''' IMPLIB ''', r''' $IMPLIB ''') 8897+ (''' FILTER ''', r''' $FILTER ''') 8898+ (''' MOZ_DEBUG_LDFLAGS ''', list(split(r''' $MOZ_DEBUG_LDFLAGS '''))) 8899+ (''' WARNINGS_AS_ERRORS ''', r''' $WARNINGS_AS_ERRORS ''') 8900+ (''' WARNINGS_CFLAGS ''', list(split(r''' $WARNINGS_CFLAGS '''))) 8901+ (''' LIBICONV ''', r''' $LIBICONV ''') 8902+ (''' ENABLE_STRIP ''', r''' $ENABLE_STRIP ''') 8903+ (''' PKG_SKIP_STRIP ''', r''' $PKG_SKIP_STRIP ''') 8904+ (''' INCREMENTAL_LINKER ''', r''' $INCREMENTAL_LINKER ''') 8905+ (''' MOZ_FIX_LINK_PATHS ''', list(split(r''' $MOZ_FIX_LINK_PATHS '''))) 8906+ (''' MOZ_POST_PROGRAM_COMMAND ''', r''' $MOZ_POST_PROGRAM_COMMAND ''') 8907+ (''' MOZ_APP_NAME ''', r''' $MOZ_APP_NAME ''') 8908+ (''' MOZ_APP_DISPLAYNAME ''', r''' $MOZ_APP_DISPLAYNAME ''') 8909+ (''' MOZ_PKG_SPECIAL ''', r''' $MOZ_PKG_SPECIAL ''') 8910+ (''' MOZ_ICU_CFLAGS ''', list(split(r''' $MOZ_ICU_CFLAGS '''))) 8911+ (''' MOZ_ICU_LIBS ''', list(split(r''' $MOZ_ICU_LIBS '''))) 8912+ (''' MOZ_SYSTEM_ICU ''', r''' $MOZ_SYSTEM_ICU ''') 8913+ (''' MOZ_ICU_VERSION ''', r''' $MOZ_ICU_VERSION ''') 8914+ (''' ENABLE_INTL_API ''', r''' $ENABLE_INTL_API ''') 8915+ (''' USE_ICU ''', r''' $USE_ICU ''') 8916+ (''' ICU_DATA_FILE ''', r''' $ICU_DATA_FILE ''') 8917+ (''' MOZ_SYSTEM_NSPR ''', r''' $MOZ_SYSTEM_NSPR ''') 8918+ (''' OS_CFLAGS ''', list(split(r''' $OS_CFLAGS '''))) 8919+ (''' OS_CXXFLAGS ''', list(split(r''' $OS_CXXFLAGS '''))) 8920+ (''' OS_CPPFLAGS ''', list(split(r''' $OS_CPPFLAGS '''))) 8921+ (''' OS_COMPILE_CFLAGS ''', list(split(r''' $OS_COMPILE_CFLAGS '''))) 8922+ (''' OS_COMPILE_CXXFLAGS ''', list(split(r''' $OS_COMPILE_CXXFLAGS '''))) 8923+ (''' OS_LDFLAGS ''', list(split(r''' $OS_LDFLAGS '''))) 8924+ (''' OS_LIBS ''', r''' $OS_LIBS ''') 8925+ (''' HOST_CC ''', r''' $HOST_CC ''') 8926+ (''' HOST_CXX ''', r''' $HOST_CXX ''') 8927+ (''' HOST_CFLAGS ''', list(split(r''' $HOST_CFLAGS '''))) 8928+ (''' HOST_CPPFLAGS ''', list(split(r''' $HOST_CPPFLAGS '''))) 8929+ (''' HOST_CXXFLAGS ''', list(split(r''' $HOST_CXXFLAGS '''))) 8930+ (''' HOST_LDFLAGS ''', r''' $HOST_LDFLAGS ''') 8931+ (''' HOST_OPTIMIZE_FLAGS ''', list(split(r''' $HOST_OPTIMIZE_FLAGS '''))) 8932+ (''' HOST_BIN_SUFFIX ''', r''' $HOST_BIN_SUFFIX ''') 8933+ (''' TARGET_XPCOM_ABI ''', r''' $TARGET_XPCOM_ABI ''') 8934+ (''' DSO_CFLAGS ''', list(split(r''' $DSO_CFLAGS '''))) 8935+ (''' DSO_PIC_CFLAGS ''', list(split(r''' $DSO_PIC_CFLAGS '''))) 8936+ (''' DSO_LDOPTS ''', r''' $DSO_LDOPTS ''') 8937+ (''' BIN_SUFFIX ''', r''' $BIN_SUFFIX ''') 8938+ (''' USE_N32 ''', r''' $USE_N32 ''') 8939+ (''' MOZ_LINKER ''', r''' $MOZ_LINKER ''') 8940+ (''' WIN32_CONSOLE_EXE_LDFLAGS ''', r''' $WIN32_CONSOLE_EXE_LDFLAGS ''') 8941+ (''' WIN32_GUI_EXE_LDFLAGS ''', r''' $WIN32_GUI_EXE_LDFLAGS ''') 8942+ (''' MOZ_DEV_EDITION ''', r''' $MOZ_DEV_EDITION ''') 8943+ (''' EARLY_BETA_OR_EARLIER ''', r''' $EARLY_BETA_OR_EARLIER ''') 8944+ (''' BINDGEN_SYSTEM_FLAGS ''', r''' $BINDGEN_SYSTEM_FLAGS ''') 8945+ (''' ac_configure_args ''', r''' $ac_configure_args ''') 8946+ (''' JS_LIBRARY_NAME ''', r''' $JS_LIBRARY_NAME ''') 8947+ (''' JS_CONFIG_MOZ_JS_LIBS ''', r''' $JS_CONFIG_MOZ_JS_LIBS ''') 8948+ (''' JS_CONFIG_LIBS ''', r''' $JS_CONFIG_LIBS ''') 8949+ (''' top_srcdir ''', r''' $top_srcdir ''') 8950+EOF 8951+ 8952+for ac_subst_arg in $_subconfigure_ac_subst_args; do 8953+ variable='$'$ac_subst_arg 8954+ echo " (''' $ac_subst_arg ''', r''' `eval echo $variable` ''')," >> $CONFIG_STATUS 8955+done 8956+ 8957+cat >> $CONFIG_STATUS <<\EOF 8958+] 8959+ 8960+non_global_defines = [ 8961+EOF 8962+ 8963+if test -n "$_NON_GLOBAL_ACDEFINES"; then 8964+ for var in $_NON_GLOBAL_ACDEFINES; do 8965+ echo " '$var'," >> $CONFIG_STATUS 8966+ done 8967+fi 8968+ 8969+cat >> $CONFIG_STATUS <<EOF 8970+] 8971+ 8972+flags = [ 8973+ '--with-ios-sdk', 8974+ '--enable-ios-target', 8975+ '--enable-memory-sanitizer', 8976+ '--enable-thread-sanitizer', 8977+ '--enable-signed-overflow-sanitizer', 8978+ '--enable-unsigned-overflow-sanitizer', 8979+ '--with-debug-label', 8980+ '--enable-cpp-rtti', 8981+ '--enable-icf', 8982+ '--enable-dtrace', 8983+ '--with-nspr-cflags', 8984+ '--with-nspr-libs', 8985+ '--enable-nspr-build', 8986+ '--with-system-nspr', 8987+ '--enable-posix-nspr-emulation', 8988+ '--with-system-zlib', 8989+ '--with-sixgill', 8990+ '--enable-strip', 8991+ '--enable-install-strip', 8992+ '--with-jitreport-granularity', 8993+ '--enable-readline', 8994+ '--with-qemu-exe', 8995+ '--with-cross-lib', 8996+ '--with-system-icu', 8997+ '--with-intl-api', 8998+] 8999+EOF 9000+ 9001+ 9002+ 9003+ 9004+rm -fr confdefs* $ac_clean_files 9005diff --git a/old-configure b/old-configure 9006index 2764da7b72..dfee8727ea 100644 9007--- a/old-configure 9008+++ b/old-configure 9009@@ -12320,7 +12320,9 @@ if test -n "$USE_ICU"; then 9010 # TODO: the l is actually endian-dependent 9011 # We could make this set as 'l' or 'b' for little or big, respectively, 9012 # but we'd need to check in a big-endian version of the file. 9013- ICU_DATA_FILE="icudt${version}l.dat" 9014+ if test -z "$ICU_DATA_FILE"; then 9015+ ICU_DATA_FILE="icudt${version}l.dat" 9016+ fi 9017 fi 9018 9019 9020@@ -12462,12 +12464,12 @@ if test -n "$COMPILE_ENVIRONMENT"; then 9021 for ac_func in posix_fadvise posix_fallocate 9022 do 9023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9024-echo "configure:12466: checking for $ac_func" >&5 9025+echo "configure:12468: checking for $ac_func" >&5 9026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 9027 echo $ac_n "(cached) $ac_c" 1>&6 9028 else 9029 cat > conftest.$ac_ext <<EOF 9030-#line 12471 "configure" 9031+#line 12473 "configure" 9032 #define $ac_func innocuous_$ac_func 9033 #include "confdefs.h" 9034 #undef $ac_func 9035@@ -12494,7 +12496,7 @@ $ac_func(); 9036 9037 ; return 0; } 9038 EOF 9039-if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9040+if { (eval echo configure:12500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9041 rm -rf conftest* 9042 eval "ac_cv_func_$ac_func=yes" 9043 else 9044@@ -12526,7 +12528,7 @@ if test "$MOZ_X11"; then 9045 _SAVE_CFLAGS=$CFLAGS 9046 CFLAGS="$CFLAGS $XCFLAGS" 9047 cat > conftest.$ac_ext <<EOF 9048-#line 12530 "configure" 9049+#line 12532 "configure" 9050 #include "confdefs.h" 9051 9052 #include <stdio.h> 9053@@ -12545,7 +12547,7 @@ int main() { 9054 9055 ; return 0; } 9056 EOF 9057-if { (eval echo configure:12549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9058+if { (eval echo configure:12551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9059 : 9060 else 9061 echo "configure: failed program was:" >&5 9062