| 3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3857 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3858 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3859 | $as_echo_n "(cached) " >&6 |
| 3860 | else |
| 3861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3862 | /* end confdefs.h. */ |
| 3863 | |
| 3864 | int |
| 3865 | main () |
| 3866 | { |
| 3867 | #ifndef __GNUC__ |
| 3868 | choke me |
| 3869 | #endif |
| 3870 | |
| 3871 | ; |
| 3872 | return 0; |
| 3873 | } |
| 3874 | _ACEOF |
| 3875 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3876 | ac_compiler_gnu=yes |
| 3877 | else |
| 3878 | ac_compiler_gnu=no |
| 3879 | fi |
| 3880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3881 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3882 | |
| 3883 | fi |
| 3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3885 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3886 | if test $ac_compiler_gnu = yes; then |
| 3887 | GCC=yes |
| 3888 | else |
| 3889 | GCC= |
| 3890 | fi |
| 3891 | ac_test_CFLAGS=${CFLAGS+set} |
| 3892 | ac_save_CFLAGS=$CFLAGS |
| 3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3894 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3895 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3896 | $as_echo_n "(cached) " >&6 |
| 3897 | else |
| 3898 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3899 | ac_c_werror_flag=yes |
| 3900 | ac_cv_prog_cc_g=no |
| 3901 | CFLAGS="-g" |
| 3902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3903 | /* end confdefs.h. */ |
| 3904 | |
| 3905 | int |
| 3906 | main () |
| 3907 | { |
| 3908 | |
| 3909 | ; |
| 3910 | return 0; |
| 3911 | } |
| 3912 | _ACEOF |
| 3913 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3914 | ac_cv_prog_cc_g=yes |
| 3915 | else |
| 3916 | CFLAGS="" |
| 3917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3918 | /* end confdefs.h. */ |
| 3919 | |
| 3920 | int |
| 3921 | main () |
| 3922 | { |
| 3923 | |
| 3924 | ; |
| 3925 | return 0; |
| 3926 | } |
| 3927 | _ACEOF |
| 3928 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3929 | |
| 3930 | else |
| 3931 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3932 | CFLAGS="-g" |
| 3933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3934 | /* end confdefs.h. */ |
| 3935 | |
| 3936 | int |
| 3937 | main () |
| 3938 | { |
| 3939 | |
| 3940 | ; |
| 3941 | return 0; |
| 3942 | } |
| 3943 | _ACEOF |
| 3944 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3945 | ac_cv_prog_cc_g=yes |
| 3946 | fi |
| 3947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3948 | fi |
| 3949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3950 | fi |
| 3951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3952 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3953 | fi |
| 3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3955 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3956 | if test "$ac_test_CFLAGS" = set; then |
| 3957 | CFLAGS=$ac_save_CFLAGS |
| 3958 | elif test $ac_cv_prog_cc_g = yes; then |
| 3959 | if test "$GCC" = yes; then |
| 3960 | CFLAGS="-g -O2" |
| 3961 | else |
| 3962 | CFLAGS="-g" |
| 3963 | fi |
| 3964 | else |
| 3965 | if test "$GCC" = yes; then |
| 3966 | CFLAGS="-O2" |
| 3967 | else |
| 3968 | CFLAGS= |
| 3969 | fi |
| 3970 | fi |
| 3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3972 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3973 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3974 | $as_echo_n "(cached) " >&6 |
| 3975 | else |
| 3976 | ac_cv_prog_cc_c89=no |
| 3977 | ac_save_CC=$CC |
| 3978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3979 | /* end confdefs.h. */ |
| 3980 | #include <stdarg.h> |
| 3981 | #include <stdio.h> |
| 3982 | struct stat; |
| 3983 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3984 | struct buf { int x; }; |
| 3985 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3986 | static char *e (p, i) |
| 3987 | char **p; |
| 3988 | int i; |
| 3989 | { |
| 3990 | return p[i]; |
| 3991 | } |
| 3992 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3993 | { |
| 3994 | char *s; |
| 3995 | va_list v; |
| 3996 | va_start (v,p); |
| 3997 | s = g (p, va_arg (v,int)); |
| 3998 | va_end (v); |
| 3999 | return s; |
| 4000 | } |
| 4001 | |
| 4002 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4003 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4004 | These don't provoke an error unfortunately, instead are silently treated |
| 4005 | as 'x'. The following induces an error, until -std is added to get |
| 4006 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4007 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4008 | that's true only with -std. */ |
| 4009 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4010 | |
| 4011 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4012 | inside strings and character constants. */ |
| 4013 | #define FOO(x) 'x' |
| 4014 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4015 | |
| 4016 | int test (int i, double x); |
| 4017 | struct s1 {int (*f) (int a);}; |
| 4018 | struct s2 {int (*f) (double a);}; |
| 4019 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4020 | int argc; |
| 4021 | char **argv; |
| 4022 | int |
| 4023 | main () |
| 4024 | { |
| 4025 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4026 | ; |
| 4027 | return 0; |
| 4028 | } |
| 4029 | _ACEOF |
| 4030 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4031 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4032 | do |
| 4033 | CC="$ac_save_CC $ac_arg" |
| 4034 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4035 | ac_cv_prog_cc_c89=$ac_arg |
| 4036 | fi |
| 4037 | rm -f core conftest.err conftest.$ac_objext |
| 4038 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4039 | done |
| 4040 | rm -f conftest.$ac_ext |
| 4041 | CC=$ac_save_CC |
| 4042 | |
| 4043 | fi |
| 4044 | # AC_CACHE_VAL |
| 4045 | case "x$ac_cv_prog_cc_c89" in |
| 4046 | x) |
| 4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4048 | $as_echo "none needed" >&6; } ;; |
| 4049 | xno) |
| 4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4051 | $as_echo "unsupported" >&6; } ;; |
| 4052 | *) |
| 4053 | CC="$CC $ac_cv_prog_cc_c89" |
| 4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4055 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4056 | esac |
| 4057 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4058 | |
| 4059 | fi |
| 4060 | |
| 4061 | ac_ext=c |
| 4062 | ac_cpp='$CPP $CPPFLAGS' |
| 4063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4066 | |
| 4067 | ac_ext=c |
| 4068 | ac_cpp='$CPP $CPPFLAGS' |
| 4069 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4070 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4071 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4073 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 4074 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 4075 | $as_echo_n "(cached) " >&6 |
| 4076 | else |
| 4077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4078 | /* end confdefs.h. */ |
| 4079 | |
| 4080 | int |
| 4081 | main () |
| 4082 | { |
| 4083 | |
| 4084 | ; |
| 4085 | return 0; |
| 4086 | } |
| 4087 | _ACEOF |
| 4088 | # Make sure it works both with $CC and with simple cc. |
| 4089 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 4090 | # compilers refuse to overwrite an existing .o file with -o, |
| 4091 | # though they will create one. |
| 4092 | am_cv_prog_cc_c_o=yes |
| 4093 | for am_i in 1 2; do |
| 4094 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4095 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4096 | ac_status=$? |
| 4097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4098 | (exit $ac_status); } \ |
| 4099 | && test -f conftest2.$ac_objext; then |
| 4100 | : OK |
| 4101 | else |
| 4102 | am_cv_prog_cc_c_o=no |
| 4103 | break |
| 4104 | fi |
| 4105 | done |
| 4106 | rm -f core conftest* |
| 4107 | unset am_i |
| 4108 | fi |
| 4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4110 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 4111 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 4112 | # Losing compiler, so override with the script. |
| 4113 | # FIXME: It is wrong to rewrite CC. |
| 4114 | # But if we don't then we get into trouble of one sort or another. |
| 4115 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4116 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4117 | CC="$am_aux_dir/compile $CC" |
| 4118 | fi |
| 4119 | ac_ext=c |
| 4120 | ac_cpp='$CPP $CPPFLAGS' |
| 4121 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4122 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4123 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4124 | |
| 4125 | |
| 4126 | depcc="$CC" am_compiler_list= |
| 4127 | |
| 4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4129 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4130 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 4131 | $as_echo_n "(cached) " >&6 |
| 4132 | else |
| 4133 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4134 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4135 | # making bogus files that we don't know about and never remove. For |
| 4136 | # instance it was reported that on HP-UX the gcc test will end up |
| 4137 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4138 | # in D". |
| 4139 | rm -rf conftest.dir |
| 4140 | mkdir conftest.dir |
| 4141 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4142 | # using a relative directory. |
| 4143 | cp "$am_depcomp" conftest.dir |
| 4144 | cd conftest.dir |
| 4145 | # We will build objects and dependencies in a subdirectory because |
| 4146 | # it helps to detect inapplicable dependency modes. For instance |
| 4147 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4148 | # side effect of compilation, but ICC will put the dependencies in |
| 4149 | # the current directory while Tru64 will put them in the object |
| 4150 | # directory. |
| 4151 | mkdir sub |
| 4152 | |
| 4153 | am_cv_CC_dependencies_compiler_type=none |
| 4154 | if test "$am_compiler_list" = ""; then |
| 4155 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4156 | fi |
| 4157 | am__universal=false |
| 4158 | case " $depcc " in #( |
| 4159 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4160 | esac |
| 4161 | |
| 4162 | for depmode in $am_compiler_list; do |
| 4163 | # Setup a source with many dependencies, because some compilers |
| 4164 | # like to wrap large dependency lists on column 80 (with \), and |
| 4165 | # we should not choose a depcomp mode which is confused by this. |
| 4166 | # |
| 4167 | # We need to recreate these files for each test, as the compiler may |
| 4168 | # overwrite some of them when testing with obscure command lines. |
| 4169 | # This happens at least with the AIX C compiler. |
| 4170 | : > sub/conftest.c |
| 4171 | for i in 1 2 3 4 5 6; do |
| 4172 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4173 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4174 | # Solaris 10 /bin/sh. |
| 4175 | echo '/* dummy */' > sub/conftst$i.h |
| 4176 | done |
| 4177 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4178 | |
| 4179 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4180 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4181 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4182 | # versions had trouble with output in subdirs. |
| 4183 | am__obj=sub/conftest.${OBJEXT-o} |
| 4184 | am__minus_obj="-o $am__obj" |
| 4185 | case $depmode in |
| 4186 | gcc) |
| 4187 | # This depmode causes a compiler race in universal mode. |
| 4188 | test "$am__universal" = false || continue |
| 4189 | ;; |
| 4190 | nosideeffect) |
| 4191 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4192 | # only be used when explicitly requested. |
| 4193 | if test "x$enable_dependency_tracking" = xyes; then |
| 4194 | continue |
| 4195 | else |
| 4196 | break |
| 4197 | fi |
| 4198 | ;; |
| 4199 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4200 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 4201 | # not run yet. These depmodes are late enough in the game, and |
| 4202 | # so weak that their functioning should not be impacted. |
| 4203 | am__obj=conftest.${OBJEXT-o} |
| 4204 | am__minus_obj= |
| 4205 | ;; |
| 4206 | none) break ;; |
| 4207 | esac |
| 4208 | if depmode=$depmode \ |
| 4209 | source=sub/conftest.c object=$am__obj \ |
| 4210 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4211 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4212 | >/dev/null 2>conftest.err && |
| 4213 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4214 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4215 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4216 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4217 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4218 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4219 | # that says an option was ignored or not supported. |
| 4220 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4221 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4222 | # The diagnosis changed in icc 8.0: |
| 4223 | # icc: Command line remark: option '-MP' not supported |
| 4224 | if (grep 'ignoring option' conftest.err || |
| 4225 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4226 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4227 | break |
| 4228 | fi |
| 4229 | fi |
| 4230 | done |
| 4231 | |
| 4232 | cd .. |
| 4233 | rm -rf conftest.dir |
| 4234 | else |
| 4235 | am_cv_CC_dependencies_compiler_type=none |
| 4236 | fi |
| 4237 | |
| 4238 | fi |
| 4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4240 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4241 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4242 | |
| 4243 | if |
| 4244 | test "x$enable_dependency_tracking" != xno \ |
| 4245 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4246 | am__fastdepCC_TRUE= |
| 4247 | am__fastdepCC_FALSE='#' |
| 4248 | else |
| 4249 | am__fastdepCC_TRUE='#' |
| 4250 | am__fastdepCC_FALSE= |
| 4251 | fi |
| 4252 | |
| 4253 | |
| 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4255 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4256 | if ${ac_cv_path_SED+:} false; then : |
| 4257 | $as_echo_n "(cached) " >&6 |
| 4258 | else |
| 4259 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4260 | for ac_i in 1 2 3 4 5 6 7; do |
| 4261 | ac_script="$ac_script$as_nl$ac_script" |
| 4262 | done |
| 4263 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4264 | { ac_script=; unset ac_script;} |
| 4265 | if test -z "$SED"; then |
| 4266 | ac_path_SED_found=false |
| 4267 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4269 | for as_dir in $PATH |
| 4270 | do |
| 4271 | IFS=$as_save_IFS |
| 4272 | test -z "$as_dir" && as_dir=. |
| 4273 | for ac_prog in sed gsed; do |
| 4274 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4275 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4276 | as_fn_executable_p "$ac_path_SED" || continue |
| 4277 | # Check for GNU ac_path_SED and select it if it is found. |
| 4278 | # Check for GNU $ac_path_SED |
| 4279 | case `"$ac_path_SED" --version 2>&1` in |
| 4280 | *GNU*) |
| 4281 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4282 | *) |
| 4283 | ac_count=0 |
| 4284 | $as_echo_n 0123456789 >"conftest.in" |
| 4285 | while : |
| 4286 | do |
| 4287 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4288 | mv "conftest.tmp" "conftest.in" |
| 4289 | cp "conftest.in" "conftest.nl" |
| 4290 | $as_echo '' >> "conftest.nl" |
| 4291 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4292 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4293 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4294 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4295 | # Best one so far, save it but keep looking for a better one |
| 4296 | ac_cv_path_SED="$ac_path_SED" |
| 4297 | ac_path_SED_max=$ac_count |
| 4298 | fi |
| 4299 | # 10*(2^10) chars as input seems more than enough |
| 4300 | test $ac_count -gt 10 && break |
| 4301 | done |
| 4302 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4303 | esac |
| 4304 | |
| 4305 | $ac_path_SED_found && break 3 |
| 4306 | done |
| 4307 | done |
| 4308 | done |
| 4309 | IFS=$as_save_IFS |
| 4310 | if test -z "$ac_cv_path_SED"; then |
| 4311 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4312 | fi |
| 4313 | else |
| 4314 | ac_cv_path_SED=$SED |
| 4315 | fi |
| 4316 | |
| 4317 | fi |
| 4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4319 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4320 | SED="$ac_cv_path_SED" |
| 4321 | rm -f conftest.sed |
| 4322 | |
| 4323 | test -z "$SED" && SED=sed |
| 4324 | Xsed="$SED -e 1s/^X//" |
| 4325 | |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | |
| 4330 | |
| 4331 | |
| 4332 | |
| 4333 | |
| 4334 | |
| 4335 | |
| 4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4337 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4338 | if ${ac_cv_path_GREP+:} false; then : |
| 4339 | $as_echo_n "(cached) " >&6 |
| 4340 | else |
| 4341 | if test -z "$GREP"; then |
| 4342 | ac_path_GREP_found=false |
| 4343 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4345 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4346 | do |
| 4347 | IFS=$as_save_IFS |
| 4348 | test -z "$as_dir" && as_dir=. |
| 4349 | for ac_prog in grep ggrep; do |
| 4350 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4351 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4352 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4353 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4354 | # Check for GNU $ac_path_GREP |
| 4355 | case `"$ac_path_GREP" --version 2>&1` in |
| 4356 | *GNU*) |
| 4357 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4358 | *) |
| 4359 | ac_count=0 |
| 4360 | $as_echo_n 0123456789 >"conftest.in" |
| 4361 | while : |
| 4362 | do |
| 4363 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4364 | mv "conftest.tmp" "conftest.in" |
| 4365 | cp "conftest.in" "conftest.nl" |
| 4366 | $as_echo 'GREP' >> "conftest.nl" |
| 4367 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4368 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4369 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4370 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4371 | # Best one so far, save it but keep looking for a better one |
| 4372 | ac_cv_path_GREP="$ac_path_GREP" |
| 4373 | ac_path_GREP_max=$ac_count |
| 4374 | fi |
| 4375 | # 10*(2^10) chars as input seems more than enough |
| 4376 | test $ac_count -gt 10 && break |
| 4377 | done |
| 4378 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4379 | esac |
| 4380 | |
| 4381 | $ac_path_GREP_found && break 3 |
| 4382 | done |
| 4383 | done |
| 4384 | done |
| 4385 | IFS=$as_save_IFS |
| 4386 | if test -z "$ac_cv_path_GREP"; then |
| 4387 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4388 | fi |
| 4389 | else |
| 4390 | ac_cv_path_GREP=$GREP |
| 4391 | fi |
| 4392 | |
| 4393 | fi |
| 4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4395 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4396 | GREP="$ac_cv_path_GREP" |
| 4397 | |
| 4398 | |
| 4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4400 | $as_echo_n "checking for egrep... " >&6; } |
| 4401 | if ${ac_cv_path_EGREP+:} false; then : |
| 4402 | $as_echo_n "(cached) " >&6 |
| 4403 | else |
| 4404 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4405 | then ac_cv_path_EGREP="$GREP -E" |
| 4406 | else |
| 4407 | if test -z "$EGREP"; then |
| 4408 | ac_path_EGREP_found=false |
| 4409 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4411 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4412 | do |
| 4413 | IFS=$as_save_IFS |
| 4414 | test -z "$as_dir" && as_dir=. |
| 4415 | for ac_prog in egrep; do |
| 4416 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4417 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4418 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4419 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4420 | # Check for GNU $ac_path_EGREP |
| 4421 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4422 | *GNU*) |
| 4423 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4424 | *) |
| 4425 | ac_count=0 |
| 4426 | $as_echo_n 0123456789 >"conftest.in" |
| 4427 | while : |
| 4428 | do |
| 4429 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4430 | mv "conftest.tmp" "conftest.in" |
| 4431 | cp "conftest.in" "conftest.nl" |
| 4432 | $as_echo 'EGREP' >> "conftest.nl" |
| 4433 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4434 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4435 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4436 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4437 | # Best one so far, save it but keep looking for a better one |
| 4438 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4439 | ac_path_EGREP_max=$ac_count |
| 4440 | fi |
| 4441 | # 10*(2^10) chars as input seems more than enough |
| 4442 | test $ac_count -gt 10 && break |
| 4443 | done |
| 4444 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4445 | esac |
| 4446 | |
| 4447 | $ac_path_EGREP_found && break 3 |
| 4448 | done |
| 4449 | done |
| 4450 | done |
| 4451 | IFS=$as_save_IFS |
| 4452 | if test -z "$ac_cv_path_EGREP"; then |
| 4453 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4454 | fi |
| 4455 | else |
| 4456 | ac_cv_path_EGREP=$EGREP |
| 4457 | fi |
| 4458 | |
| 4459 | fi |
| 4460 | fi |
| 4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4462 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4463 | EGREP="$ac_cv_path_EGREP" |
| 4464 | |
| 4465 | |
| 4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4467 | $as_echo_n "checking for fgrep... " >&6; } |
| 4468 | if ${ac_cv_path_FGREP+:} false; then : |
| 4469 | $as_echo_n "(cached) " >&6 |
| 4470 | else |
| 4471 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4472 | then ac_cv_path_FGREP="$GREP -F" |
| 4473 | else |
| 4474 | if test -z "$FGREP"; then |
| 4475 | ac_path_FGREP_found=false |
| 4476 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4478 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4479 | do |
| 4480 | IFS=$as_save_IFS |
| 4481 | test -z "$as_dir" && as_dir=. |
| 4482 | for ac_prog in fgrep; do |
| 4483 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4484 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4485 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 4486 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4487 | # Check for GNU $ac_path_FGREP |
| 4488 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4489 | *GNU*) |
| 4490 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4491 | *) |
| 4492 | ac_count=0 |
| 4493 | $as_echo_n 0123456789 >"conftest.in" |
| 4494 | while : |
| 4495 | do |
| 4496 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4497 | mv "conftest.tmp" "conftest.in" |
| 4498 | cp "conftest.in" "conftest.nl" |
| 4499 | $as_echo 'FGREP' >> "conftest.nl" |
| 4500 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4501 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4502 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4503 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4504 | # Best one so far, save it but keep looking for a better one |
| 4505 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4506 | ac_path_FGREP_max=$ac_count |
| 4507 | fi |
| 4508 | # 10*(2^10) chars as input seems more than enough |
| 4509 | test $ac_count -gt 10 && break |
| 4510 | done |
| 4511 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4512 | esac |
| 4513 | |
| 4514 | $ac_path_FGREP_found && break 3 |
| 4515 | done |
| 4516 | done |
| 4517 | done |
| 4518 | IFS=$as_save_IFS |
| 4519 | if test -z "$ac_cv_path_FGREP"; then |
| 4520 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4521 | fi |
| 4522 | else |
| 4523 | ac_cv_path_FGREP=$FGREP |
| 4524 | fi |
| 4525 | |
| 4526 | fi |
| 4527 | fi |
| 4528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4529 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 4530 | FGREP="$ac_cv_path_FGREP" |
| 4531 | |
| 4532 | |
| 4533 | test -z "$GREP" && GREP=grep |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 | |
| 4539 | |
| 4540 | |
| 4541 | |
| 4542 | |
| 4543 | |
| 4544 | |
| 4545 | |
| 4546 | |
| 4547 | |
| 4548 | |
| 4549 | |
| 4550 | |
| 4551 | |
| 4552 | |
| 4553 | # Check whether --with-gnu-ld was given. |
| 4554 | if test "${with_gnu_ld+set}" = set; then : |
| 4555 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 4556 | else |
| 4557 | with_gnu_ld=no |
| 4558 | fi |
| 4559 | |
| 4560 | ac_prog=ld |
| 4561 | if test yes = "$GCC"; then |
| 4562 | # Check if gcc -print-prog-name=ld gives a path. |
| 4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4564 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 4565 | case $host in |
| 4566 | *-*-mingw*) |
| 4567 | # gcc leaves a trailing carriage return, which upsets mingw |
| 4568 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4569 | *) |
| 4570 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4571 | esac |
| 4572 | case $ac_prog in |
| 4573 | # Accept absolute paths. |
| 4574 | [\\/]* | ?:[\\/]*) |
| 4575 | re_direlt='/[^/][^/]*/\.\./' |
| 4576 | # Canonicalize the pathname of ld |
| 4577 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4578 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4579 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 4580 | done |
| 4581 | test -z "$LD" && LD=$ac_prog |
| 4582 | ;; |
| 4583 | "") |
| 4584 | # If it fails, then pretend we aren't using GCC. |
| 4585 | ac_prog=ld |
| 4586 | ;; |
| 4587 | *) |
| 4588 | # If it is relative, then search for the first ld in PATH. |
| 4589 | with_gnu_ld=unknown |
| 4590 | ;; |
| 4591 | esac |
| 4592 | elif test yes = "$with_gnu_ld"; then |
| 4593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4594 | $as_echo_n "checking for GNU ld... " >&6; } |
| 4595 | else |
| 4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4597 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 4598 | fi |
| 4599 | if ${lt_cv_path_LD+:} false; then : |
| 4600 | $as_echo_n "(cached) " >&6 |
| 4601 | else |
| 4602 | if test -z "$LD"; then |
| 4603 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 4604 | for ac_dir in $PATH; do |
| 4605 | IFS=$lt_save_ifs |
| 4606 | test -z "$ac_dir" && ac_dir=. |
| 4607 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4608 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 4609 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4610 | # but apparently some variants of GNU ld only accept -v. |
| 4611 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4612 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4613 | *GNU* | *'with BFD'*) |
| 4614 | test no != "$with_gnu_ld" && break |
| 4615 | ;; |
| 4616 | *) |
| 4617 | test yes != "$with_gnu_ld" && break |
| 4618 | ;; |
| 4619 | esac |
| 4620 | fi |
| 4621 | done |
| 4622 | IFS=$lt_save_ifs |
| 4623 | else |
| 4624 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 4625 | fi |
| 4626 | fi |
| 4627 | |
| 4628 | LD=$lt_cv_path_LD |
| 4629 | if test -n "$LD"; then |
| 4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4631 | $as_echo "$LD" >&6; } |
| 4632 | else |
| 4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4634 | $as_echo "no" >&6; } |
| 4635 | fi |
| 4636 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 4638 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 4639 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 4640 | $as_echo_n "(cached) " >&6 |
| 4641 | else |
| 4642 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4643 | case `$LD -v 2>&1 </dev/null` in |
| 4644 | *GNU* | *'with BFD'*) |
| 4645 | lt_cv_prog_gnu_ld=yes |
| 4646 | ;; |
| 4647 | *) |
| 4648 | lt_cv_prog_gnu_ld=no |
| 4649 | ;; |
| 4650 | esac |
| 4651 | fi |
| 4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 4653 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 4654 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4655 | |
| 4656 | |
| 4657 | |
| 4658 | |
| 4659 | |
| 4660 | |
| 4661 | |
| 4662 | |
| 4663 | |
| 4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 4665 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 4666 | if ${lt_cv_path_NM+:} false; then : |
| 4667 | $as_echo_n "(cached) " >&6 |
| 4668 | else |
| 4669 | if test -n "$NM"; then |
| 4670 | # Let the user override the test. |
| 4671 | lt_cv_path_NM=$NM |
| 4672 | else |
| 4673 | lt_nm_to_check=${ac_tool_prefix}nm |
| 4674 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4675 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4676 | fi |
| 4677 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4678 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 4679 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4680 | IFS=$lt_save_ifs |
| 4681 | test -z "$ac_dir" && ac_dir=. |
| 4682 | tmp_nm=$ac_dir/$lt_tmp_nm |
| 4683 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 4684 | # Check to see if the nm accepts a BSD-compat flag. |
| 4685 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 4686 | # nm: unknown option "B" ignored |
| 4687 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4688 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 4689 | case $build_os in |
| 4690 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 4691 | *) lt_bad_file=/dev/null ;; |
| 4692 | esac |
| 4693 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
| 4694 | *$lt_bad_file* | *'Invalid file or object type'*) |
| 4695 | lt_cv_path_NM="$tmp_nm -B" |
| 4696 | break 2 |
| 4697 | ;; |
| 4698 | *) |
| 4699 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4700 | */dev/null*) |
| 4701 | lt_cv_path_NM="$tmp_nm -p" |
| 4702 | break 2 |
| 4703 | ;; |
| 4704 | *) |
| 4705 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4706 | continue # so that we can try to find one that supports BSD flags |
| 4707 | ;; |
| 4708 | esac |
| 4709 | ;; |
| 4710 | esac |
| 4711 | fi |
| 4712 | done |
| 4713 | IFS=$lt_save_ifs |
| 4714 | done |
| 4715 | : ${lt_cv_path_NM=no} |
| 4716 | fi |
| 4717 | fi |
| 4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 4719 | $as_echo "$lt_cv_path_NM" >&6; } |
| 4720 | if test no != "$lt_cv_path_NM"; then |
| 4721 | NM=$lt_cv_path_NM |
| 4722 | else |
| 4723 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 4724 | if test -n "$DUMPBIN"; then : |
| 4725 | # Let the user override the test. |
| 4726 | else |
| 4727 | if test -n "$ac_tool_prefix"; then |
| 4728 | for ac_prog in dumpbin "link -dump" |
| 4729 | do |
| 4730 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4731 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4733 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4734 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 4735 | $as_echo_n "(cached) " >&6 |
| 4736 | else |
| 4737 | if test -n "$DUMPBIN"; then |
| 4738 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 4739 | else |
| 4740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4741 | for as_dir in $PATH |
| 4742 | do |
| 4743 | IFS=$as_save_IFS |
| 4744 | test -z "$as_dir" && as_dir=. |
| 4745 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4746 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4747 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 4748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4749 | break 2 |
| 4750 | fi |
| 4751 | done |
| 4752 | done |
| 4753 | IFS=$as_save_IFS |
| 4754 | |
| 4755 | fi |
| 4756 | fi |
| 4757 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 4758 | if test -n "$DUMPBIN"; then |
| 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 4760 | $as_echo "$DUMPBIN" >&6; } |
| 4761 | else |
| 4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4763 | $as_echo "no" >&6; } |
| 4764 | fi |
| 4765 | |
| 4766 | |
| 4767 | test -n "$DUMPBIN" && break |
| 4768 | done |
| 4769 | fi |
| 4770 | if test -z "$DUMPBIN"; then |
| 4771 | ac_ct_DUMPBIN=$DUMPBIN |
| 4772 | for ac_prog in dumpbin "link -dump" |
| 4773 | do |
| 4774 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4775 | set dummy $ac_prog; ac_word=$2 |
| 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4777 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4778 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 4779 | $as_echo_n "(cached) " >&6 |
| 4780 | else |
| 4781 | if test -n "$ac_ct_DUMPBIN"; then |
| 4782 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 4783 | else |
| 4784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4785 | for as_dir in $PATH |
| 4786 | do |
| 4787 | IFS=$as_save_IFS |
| 4788 | test -z "$as_dir" && as_dir=. |
| 4789 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4790 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4791 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 4792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4793 | break 2 |
| 4794 | fi |
| 4795 | done |
| 4796 | done |
| 4797 | IFS=$as_save_IFS |
| 4798 | |
| 4799 | fi |
| 4800 | fi |
| 4801 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 4802 | if test -n "$ac_ct_DUMPBIN"; then |
| 4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 4804 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 4805 | else |
| 4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4807 | $as_echo "no" >&6; } |
| 4808 | fi |
| 4809 | |
| 4810 | |
| 4811 | test -n "$ac_ct_DUMPBIN" && break |
| 4812 | done |
| 4813 | |
| 4814 | if test "x$ac_ct_DUMPBIN" = x; then |
| 4815 | DUMPBIN=":" |
| 4816 | else |
| 4817 | case $cross_compiling:$ac_tool_warned in |
| 4818 | yes:) |
| 4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4820 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4821 | ac_tool_warned=yes ;; |
| 4822 | esac |
| 4823 | DUMPBIN=$ac_ct_DUMPBIN |
| 4824 | fi |
| 4825 | fi |
| 4826 | |
| 4827 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
| 4828 | *COFF*) |
| 4829 | DUMPBIN="$DUMPBIN -symbols -headers" |
| 4830 | ;; |
| 4831 | *) |
| 4832 | DUMPBIN=: |
| 4833 | ;; |
| 4834 | esac |
| 4835 | fi |
| 4836 | |
| 4837 | if test : != "$DUMPBIN"; then |
| 4838 | NM=$DUMPBIN |
| 4839 | fi |
| 4840 | fi |
| 4841 | test -z "$NM" && NM=nm |
| 4842 | |
| 4843 | |
| 4844 | |
| 4845 | |
| 4846 | |
| 4847 | |
| 4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 4849 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 4850 | if ${lt_cv_nm_interface+:} false; then : |
| 4851 | $as_echo_n "(cached) " >&6 |
| 4852 | else |
| 4853 | lt_cv_nm_interface="BSD nm" |
| 4854 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 4855 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 4856 | (eval "$ac_compile" 2>conftest.err) |
| 4857 | cat conftest.err >&5 |
| 4858 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 4859 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 4860 | cat conftest.err >&5 |
| 4861 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 4862 | cat conftest.out >&5 |
| 4863 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 4864 | lt_cv_nm_interface="MS dumpbin" |
| 4865 | fi |
| 4866 | rm -f conftest* |
| 4867 | fi |
| 4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 4869 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 4870 | |
| 4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 4872 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 4873 | LN_S=$as_ln_s |
| 4874 | if test "$LN_S" = "ln -s"; then |
| 4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4876 | $as_echo "yes" >&6; } |
| 4877 | else |
| 4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 4879 | $as_echo "no, using $LN_S" >&6; } |
| 4880 | fi |
| 4881 | |
| 4882 | # find the maximum length of command line arguments |
| 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 4884 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 4885 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 4886 | $as_echo_n "(cached) " >&6 |
| 4887 | else |
| 4888 | i=0 |
| 4889 | teststring=ABCD |
| 4890 | |
| 4891 | case $build_os in |
| 4892 | msdosdjgpp*) |
| 4893 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4894 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4895 | # during glob expansion). Even if it were fixed, the result of this |
| 4896 | # check would be larger than it should be. |
| 4897 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4898 | ;; |
| 4899 | |
| 4900 | gnu*) |
| 4901 | # Under GNU Hurd, this test is not required because there is |
| 4902 | # no limit to the length of command line arguments. |
| 4903 | # Libtool will interpret -1 as no limit whatsoever |
| 4904 | lt_cv_sys_max_cmd_len=-1; |
| 4905 | ;; |
| 4906 | |
| 4907 | cygwin* | mingw* | cegcc*) |
| 4908 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4909 | # about 5 minutes as the teststring grows exponentially. |
| 4910 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4911 | # you end up with a "frozen" computer, even though with patience |
| 4912 | # the test eventually succeeds (with a max line length of 256k). |
| 4913 | # Instead, let's just punt: use the minimum linelength reported by |
| 4914 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4915 | lt_cv_sys_max_cmd_len=8192; |
| 4916 | ;; |
| 4917 | |
| 4918 | mint*) |
| 4919 | # On MiNT this can take a long time and run out of memory. |
| 4920 | lt_cv_sys_max_cmd_len=8192; |
| 4921 | ;; |
| 4922 | |
| 4923 | amigaos*) |
| 4924 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4925 | # So we just punt and use a minimum line length of 8192. |
| 4926 | lt_cv_sys_max_cmd_len=8192; |
| 4927 | ;; |
| 4928 | |
| 4929 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
| 4930 | # This has been around since 386BSD, at least. Likely further. |
| 4931 | if test -x /sbin/sysctl; then |
| 4932 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 4933 | elif test -x /usr/sbin/sysctl; then |
| 4934 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4935 | else |
| 4936 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4937 | fi |
| 4938 | # And add a safety zone |
| 4939 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4940 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4941 | ;; |
| 4942 | |
| 4943 | interix*) |
| 4944 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4945 | lt_cv_sys_max_cmd_len=196608 |
| 4946 | ;; |
| 4947 | |
| 4948 | os2*) |
| 4949 | # The test takes a long time on OS/2. |
| 4950 | lt_cv_sys_max_cmd_len=8192 |
| 4951 | ;; |
| 4952 | |
| 4953 | osf*) |
| 4954 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4955 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4956 | # nice to cause kernel panics so lets avoid the loop below. |
| 4957 | # First set a reasonable default. |
| 4958 | lt_cv_sys_max_cmd_len=16384 |
| 4959 | # |
| 4960 | if test -x /sbin/sysconfig; then |
| 4961 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4962 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4963 | esac |
| 4964 | fi |
| 4965 | ;; |
| 4966 | sco3.2v5*) |
| 4967 | lt_cv_sys_max_cmd_len=102400 |
| 4968 | ;; |
| 4969 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 4970 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4971 | if test -n "$kargmax"; then |
| 4972 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 4973 | else |
| 4974 | lt_cv_sys_max_cmd_len=32768 |
| 4975 | fi |
| 4976 | ;; |
| 4977 | *) |
| 4978 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 4979 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 4980 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 4981 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4982 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4983 | else |
| 4984 | # Make teststring a little bigger before we do anything with it. |
| 4985 | # a 1K string should be a reasonable start. |
| 4986 | for i in 1 2 3 4 5 6 7 8; do |
| 4987 | teststring=$teststring$teststring |
| 4988 | done |
| 4989 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 4990 | # If test is not a shell built-in, we'll probably end up computing a |
| 4991 | # maximum length that is only half of the actual maximum length, but |
| 4992 | # we can't tell. |
| 4993 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 4994 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 4995 | test 17 != "$i" # 1/2 MB should be enough |
| 4996 | do |
| 4997 | i=`expr $i + 1` |
| 4998 | teststring=$teststring$teststring |
| 4999 | done |
| 5000 | # Only check the string length outside the loop. |
| 5001 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5002 | teststring= |
| 5003 | # Add a significant safety factor because C++ compilers can tack on |
| 5004 | # massive amounts of additional arguments before passing them to the |
| 5005 | # linker. It appears as though 1/2 is a usable value. |
| 5006 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5007 | fi |
| 5008 | ;; |
| 5009 | esac |
| 5010 | |
| 5011 | fi |
| 5012 | |
| 5013 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5015 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5016 | else |
| 5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5018 | $as_echo "none" >&6; } |
| 5019 | fi |
| 5020 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5021 | |
| 5022 | |
| 5023 | |
| 5024 | |
| 5025 | |
| 5026 | |
| 5027 | : ${CP="cp -f"} |
| 5028 | : ${MV="mv -f"} |
| 5029 | : ${RM="rm -f"} |
| 5030 | |
| 5031 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5032 | lt_unset=unset |
| 5033 | else |
| 5034 | lt_unset=false |
| 5035 | fi |
| 5036 | |
| 5037 | |
| 5038 | |
| 5039 | |
| 5040 | |
| 5041 | # test EBCDIC or ASCII |
| 5042 | case `echo X|tr X '\101'` in |
| 5043 | A) # ASCII based system |
| 5044 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5045 | lt_SP2NL='tr \040 \012' |
| 5046 | lt_NL2SP='tr \015\012 \040\040' |
| 5047 | ;; |
| 5048 | *) # EBCDIC based system |
| 5049 | lt_SP2NL='tr \100 \n' |
| 5050 | lt_NL2SP='tr \r\n \100\100' |
| 5051 | ;; |
| 5052 | esac |
| 5053 | |
| 5054 | |
| 5055 | |
| 5056 | |
| 5057 | |
| 5058 | |
| 5059 | |
| 5060 | |
| 5061 | |
| 5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 5063 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 5064 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 5065 | $as_echo_n "(cached) " >&6 |
| 5066 | else |
| 5067 | case $host in |
| 5068 | *-*-mingw* ) |
| 5069 | case $build in |
| 5070 | *-*-mingw* ) # actually msys |
| 5071 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 5072 | ;; |
| 5073 | *-*-cygwin* ) |
| 5074 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 5075 | ;; |
| 5076 | * ) # otherwise, assume *nix |
| 5077 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 5078 | ;; |
| 5079 | esac |
| 5080 | ;; |
| 5081 | *-*-cygwin* ) |
| 5082 | case $build in |
| 5083 | *-*-mingw* ) # actually msys |
| 5084 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 5085 | ;; |
| 5086 | *-*-cygwin* ) |
| 5087 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5088 | ;; |
| 5089 | * ) # otherwise, assume *nix |
| 5090 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 5091 | ;; |
| 5092 | esac |
| 5093 | ;; |
| 5094 | * ) # unhandled hosts (and "normal" native builds) |
| 5095 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5096 | ;; |
| 5097 | esac |
| 5098 | |
| 5099 | fi |
| 5100 | |
| 5101 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 5103 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 5104 | |
| 5105 | |
| 5106 | |
| 5107 | |
| 5108 | |
| 5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 5110 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 5111 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 5112 | $as_echo_n "(cached) " >&6 |
| 5113 | else |
| 5114 | #assume ordinary cross tools, or native build. |
| 5115 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 5116 | case $host in |
| 5117 | *-*-mingw* ) |
| 5118 | case $build in |
| 5119 | *-*-mingw* ) # actually msys |
| 5120 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 5121 | ;; |
| 5122 | esac |
| 5123 | ;; |
| 5124 | esac |
| 5125 | |
| 5126 | fi |
| 5127 | |
| 5128 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 5130 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 5131 | |
| 5132 | |
| 5133 | |
| 5134 | |
| 5135 | |
| 5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5137 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5138 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 5139 | $as_echo_n "(cached) " >&6 |
| 5140 | else |
| 5141 | lt_cv_ld_reload_flag='-r' |
| 5142 | fi |
| 5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5144 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5145 | reload_flag=$lt_cv_ld_reload_flag |
| 5146 | case $reload_flag in |
| 5147 | "" | " "*) ;; |
| 5148 | *) reload_flag=" $reload_flag" ;; |
| 5149 | esac |
| 5150 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5151 | case $host_os in |
| 5152 | cygwin* | mingw* | pw32* | cegcc*) |
| 5153 | if test yes != "$GCC"; then |
| 5154 | reload_cmds=false |
| 5155 | fi |
| 5156 | ;; |
| 5157 | darwin*) |
| 5158 | if test yes = "$GCC"; then |
| 5159 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 5160 | else |
| 5161 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5162 | fi |
| 5163 | ;; |
| 5164 | esac |
| 5165 | |
| 5166 | |
| 5167 | |
| 5168 | |
| 5169 | |
| 5170 | |
| 5171 | |
| 5172 | |
| 5173 | |
| 5174 | if test -n "$ac_tool_prefix"; then |
| 5175 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5176 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5178 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5179 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 5180 | $as_echo_n "(cached) " >&6 |
| 5181 | else |
| 5182 | if test -n "$OBJDUMP"; then |
| 5183 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5184 | else |
| 5185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5186 | for as_dir in $PATH |
| 5187 | do |
| 5188 | IFS=$as_save_IFS |
| 5189 | test -z "$as_dir" && as_dir=. |
| 5190 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5191 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5192 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5194 | break 2 |
| 5195 | fi |
| 5196 | done |
| 5197 | done |
| 5198 | IFS=$as_save_IFS |
| 5199 | |
| 5200 | fi |
| 5201 | fi |
| 5202 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5203 | if test -n "$OBJDUMP"; then |
| 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5205 | $as_echo "$OBJDUMP" >&6; } |
| 5206 | else |
| 5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5208 | $as_echo "no" >&6; } |
| 5209 | fi |
| 5210 | |
| 5211 | |
| 5212 | fi |
| 5213 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5214 | ac_ct_OBJDUMP=$OBJDUMP |
| 5215 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5216 | set dummy objdump; ac_word=$2 |
| 5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5218 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5219 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 5220 | $as_echo_n "(cached) " >&6 |
| 5221 | else |
| 5222 | if test -n "$ac_ct_OBJDUMP"; then |
| 5223 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5224 | else |
| 5225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5226 | for as_dir in $PATH |
| 5227 | do |
| 5228 | IFS=$as_save_IFS |
| 5229 | test -z "$as_dir" && as_dir=. |
| 5230 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5232 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5234 | break 2 |
| 5235 | fi |
| 5236 | done |
| 5237 | done |
| 5238 | IFS=$as_save_IFS |
| 5239 | |
| 5240 | fi |
| 5241 | fi |
| 5242 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5243 | if test -n "$ac_ct_OBJDUMP"; then |
| 5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5245 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5246 | else |
| 5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5248 | $as_echo "no" >&6; } |
| 5249 | fi |
| 5250 | |
| 5251 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5252 | OBJDUMP="false" |
| 5253 | else |
| 5254 | case $cross_compiling:$ac_tool_warned in |
| 5255 | yes:) |
| 5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5257 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5258 | ac_tool_warned=yes ;; |
| 5259 | esac |
| 5260 | OBJDUMP=$ac_ct_OBJDUMP |
| 5261 | fi |
| 5262 | else |
| 5263 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5264 | fi |
| 5265 | |
| 5266 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5267 | |
| 5268 | |
| 5269 | |
| 5270 | |
| 5271 | |
| 5272 | |
| 5273 | |
| 5274 | |
| 5275 | |
| 5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5277 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5278 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 5279 | $as_echo_n "(cached) " >&6 |
| 5280 | else |
| 5281 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5282 | lt_cv_file_magic_test_file= |
| 5283 | lt_cv_deplibs_check_method='unknown' |
| 5284 | # Need to set the preceding variable on all platforms that support |
| 5285 | # interlibrary dependencies. |
| 5286 | # 'none' -- dependencies not supported. |
| 5287 | # 'unknown' -- same as none, but documents that we really don't know. |
| 5288 | # 'pass_all' -- all dependencies passed with no checks. |
| 5289 | # 'test_compile' -- check by making test program. |
| 5290 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5291 | # that responds to the $file_magic_cmd with a given extended regex. |
| 5292 | # If you have 'file' or equivalent on your system and you're not sure |
| 5293 | # whether 'pass_all' will *always* work, you probably want this one. |
| 5294 | |
| 5295 | case $host_os in |
| 5296 | aix[4-9]*) |
| 5297 | lt_cv_deplibs_check_method=pass_all |
| 5298 | ;; |
| 5299 | |
| 5300 | beos*) |
| 5301 | lt_cv_deplibs_check_method=pass_all |
| 5302 | ;; |
| 5303 | |
| 5304 | bsdi[45]*) |
| 5305 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5306 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5307 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5308 | ;; |
| 5309 | |
| 5310 | cygwin*) |
| 5311 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5312 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5313 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5314 | ;; |
| 5315 | |
| 5316 | mingw* | pw32*) |
| 5317 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5318 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5319 | # unless we find 'file', for example because we are cross-compiling. |
| 5320 | if ( file / ) >/dev/null 2>&1; then |
| 5321 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5322 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5323 | else |
| 5324 | # Keep this pattern in sync with the one in func_win32_libid. |
| 5325 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 5326 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5327 | fi |
| 5328 | ;; |
| 5329 | |
| 5330 | cegcc*) |
| 5331 | # use the weaker test based on 'objdump'. See mingw*. |
| 5332 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5333 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5334 | ;; |
| 5335 | |
| 5336 | darwin* | rhapsody*) |
| 5337 | lt_cv_deplibs_check_method=pass_all |
| 5338 | ;; |
| 5339 | |
| 5340 | freebsd* | dragonfly*) |
| 5341 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5342 | case $host_cpu in |
| 5343 | i*86 ) |
| 5344 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5345 | # Let's accept both of them until this is cleared up. |
| 5346 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5347 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5348 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5349 | ;; |
| 5350 | esac |
| 5351 | else |
| 5352 | lt_cv_deplibs_check_method=pass_all |
| 5353 | fi |
| 5354 | ;; |
| 5355 | |
| 5356 | haiku*) |
| 5357 | lt_cv_deplibs_check_method=pass_all |
| 5358 | ;; |
| 5359 | |
| 5360 | hpux10.20* | hpux11*) |
| 5361 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5362 | case $host_cpu in |
| 5363 | ia64*) |
| 5364 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5365 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5366 | ;; |
| 5367 | hppa*64*) |
| 5368 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
| 5369 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5370 | ;; |
| 5371 | *) |
| 5372 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 5373 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5374 | ;; |
| 5375 | esac |
| 5376 | ;; |
| 5377 | |
| 5378 | interix[3-9]*) |
| 5379 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5380 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5381 | ;; |
| 5382 | |
| 5383 | irix5* | irix6* | nonstopux*) |
| 5384 | case $LD in |
| 5385 | *-32|*"-32 ") libmagic=32-bit;; |
| 5386 | *-n32|*"-n32 ") libmagic=N32;; |
| 5387 | *-64|*"-64 ") libmagic=64-bit;; |
| 5388 | *) libmagic=never-match;; |
| 5389 | esac |
| 5390 | lt_cv_deplibs_check_method=pass_all |
| 5391 | ;; |
| 5392 | |
| 5393 | # This must be glibc/ELF. |
| 5394 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 5395 | lt_cv_deplibs_check_method=pass_all |
| 5396 | ;; |
| 5397 | |
| 5398 | netbsd* | netbsdelf*-gnu) |
| 5399 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5400 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5401 | else |
| 5402 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5403 | fi |
| 5404 | ;; |
| 5405 | |
| 5406 | newos6*) |
| 5407 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5408 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5409 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5410 | ;; |
| 5411 | |
| 5412 | *nto* | *qnx*) |
| 5413 | lt_cv_deplibs_check_method=pass_all |
| 5414 | ;; |
| 5415 | |
| 5416 | openbsd* | bitrig*) |
| 5417 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 5418 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5419 | else |
| 5420 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5421 | fi |
| 5422 | ;; |
| 5423 | |
| 5424 | osf3* | osf4* | osf5*) |
| 5425 | lt_cv_deplibs_check_method=pass_all |
| 5426 | ;; |
| 5427 | |
| 5428 | rdos*) |
| 5429 | lt_cv_deplibs_check_method=pass_all |
| 5430 | ;; |
| 5431 | |
| 5432 | solaris*) |
| 5433 | lt_cv_deplibs_check_method=pass_all |
| 5434 | ;; |
| 5435 | |
| 5436 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5437 | lt_cv_deplibs_check_method=pass_all |
| 5438 | ;; |
| 5439 | |
| 5440 | sysv4 | sysv4.3*) |
| 5441 | case $host_vendor in |
| 5442 | motorola) |
| 5443 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 5444 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5445 | ;; |
| 5446 | ncr) |
| 5447 | lt_cv_deplibs_check_method=pass_all |
| 5448 | ;; |
| 5449 | sequent) |
| 5450 | lt_cv_file_magic_cmd='/bin/file' |
| 5451 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5452 | ;; |
| 5453 | sni) |
| 5454 | lt_cv_file_magic_cmd='/bin/file' |
| 5455 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5456 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5457 | ;; |
| 5458 | siemens) |
| 5459 | lt_cv_deplibs_check_method=pass_all |
| 5460 | ;; |
| 5461 | pc) |
| 5462 | lt_cv_deplibs_check_method=pass_all |
| 5463 | ;; |
| 5464 | esac |
| 5465 | ;; |
| 5466 | |
| 5467 | tpf*) |
| 5468 | lt_cv_deplibs_check_method=pass_all |
| 5469 | ;; |
| 5470 | os2*) |
| 5471 | lt_cv_deplibs_check_method=pass_all |
| 5472 | ;; |
| 5473 | esac |
| 5474 | |
| 5475 | fi |
| 5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5477 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 5478 | |
| 5479 | file_magic_glob= |
| 5480 | want_nocaseglob=no |
| 5481 | if test "$build" = "$host"; then |
| 5482 | case $host_os in |
| 5483 | mingw* | pw32*) |
| 5484 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 5485 | want_nocaseglob=yes |
| 5486 | else |
| 5487 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 5488 | fi |
| 5489 | ;; |
| 5490 | esac |
| 5491 | fi |
| 5492 | |
| 5493 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5494 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5495 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5496 | |
| 5497 | |
| 5498 | |
| 5499 | |
| 5500 | |
| 5501 | |
| 5502 | |
| 5503 | |
| 5504 | |
| 5505 | |
| 5506 | |
| 5507 | |
| 5508 | |
| 5509 | |
| 5510 | |
| 5511 | |
| 5512 | |
| 5513 | |
| 5514 | |
| 5515 | |
| 5516 | |
| 5517 | |
| 5518 | if test -n "$ac_tool_prefix"; then |
| 5519 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5520 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5522 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5523 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 5524 | $as_echo_n "(cached) " >&6 |
| 5525 | else |
| 5526 | if test -n "$DLLTOOL"; then |
| 5527 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5528 | else |
| 5529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5530 | for as_dir in $PATH |
| 5531 | do |
| 5532 | IFS=$as_save_IFS |
| 5533 | test -z "$as_dir" && as_dir=. |
| 5534 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5535 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5536 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5538 | break 2 |
| 5539 | fi |
| 5540 | done |
| 5541 | done |
| 5542 | IFS=$as_save_IFS |
| 5543 | |
| 5544 | fi |
| 5545 | fi |
| 5546 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5547 | if test -n "$DLLTOOL"; then |
| 5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 5549 | $as_echo "$DLLTOOL" >&6; } |
| 5550 | else |
| 5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5552 | $as_echo "no" >&6; } |
| 5553 | fi |
| 5554 | |
| 5555 | |
| 5556 | fi |
| 5557 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5558 | ac_ct_DLLTOOL=$DLLTOOL |
| 5559 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 5560 | set dummy dlltool; ac_word=$2 |
| 5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5562 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5563 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 5564 | $as_echo_n "(cached) " >&6 |
| 5565 | else |
| 5566 | if test -n "$ac_ct_DLLTOOL"; then |
| 5567 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5568 | else |
| 5569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5570 | for as_dir in $PATH |
| 5571 | do |
| 5572 | IFS=$as_save_IFS |
| 5573 | test -z "$as_dir" && as_dir=. |
| 5574 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5575 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5576 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5578 | break 2 |
| 5579 | fi |
| 5580 | done |
| 5581 | done |
| 5582 | IFS=$as_save_IFS |
| 5583 | |
| 5584 | fi |
| 5585 | fi |
| 5586 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5587 | if test -n "$ac_ct_DLLTOOL"; then |
| 5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 5589 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 5590 | else |
| 5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5592 | $as_echo "no" >&6; } |
| 5593 | fi |
| 5594 | |
| 5595 | if test "x$ac_ct_DLLTOOL" = x; then |
| 5596 | DLLTOOL="false" |
| 5597 | else |
| 5598 | case $cross_compiling:$ac_tool_warned in |
| 5599 | yes:) |
| 5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5601 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5602 | ac_tool_warned=yes ;; |
| 5603 | esac |
| 5604 | DLLTOOL=$ac_ct_DLLTOOL |
| 5605 | fi |
| 5606 | else |
| 5607 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 5608 | fi |
| 5609 | |
| 5610 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5611 | |
| 5612 | |
| 5613 | |
| 5614 | |
| 5615 | |
| 5616 | |
| 5617 | |
| 5618 | |
| 5619 | |
| 5620 | |
| 5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 5622 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 5623 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 5624 | $as_echo_n "(cached) " >&6 |
| 5625 | else |
| 5626 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 5627 | |
| 5628 | case $host_os in |
| 5629 | cygwin* | mingw* | pw32* | cegcc*) |
| 5630 | # two different shell functions defined in ltmain.sh; |
| 5631 | # decide which one to use based on capabilities of $DLLTOOL |
| 5632 | case `$DLLTOOL --help 2>&1` in |
| 5633 | *--identify-strict*) |
| 5634 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 5635 | ;; |
| 5636 | *) |
| 5637 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 5638 | ;; |
| 5639 | esac |
| 5640 | ;; |
| 5641 | *) |
| 5642 | # fallback: assume linklib IS sharedlib |
| 5643 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 5644 | ;; |
| 5645 | esac |
| 5646 | |
| 5647 | fi |
| 5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 5649 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 5650 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 5651 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 5652 | |
| 5653 | |
| 5654 | |
| 5655 | |
| 5656 | |
| 5657 | |
| 5658 | |
| 5659 | |
| 5660 | if test -n "$ac_tool_prefix"; then |
| 5661 | for ac_prog in ar |
| 5662 | do |
| 5663 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5664 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5666 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5667 | if ${ac_cv_prog_AR+:} false; then : |
| 5668 | $as_echo_n "(cached) " >&6 |
| 5669 | else |
| 5670 | if test -n "$AR"; then |
| 5671 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5672 | else |
| 5673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5674 | for as_dir in $PATH |
| 5675 | do |
| 5676 | IFS=$as_save_IFS |
| 5677 | test -z "$as_dir" && as_dir=. |
| 5678 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5680 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 5681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5682 | break 2 |
| 5683 | fi |
| 5684 | done |
| 5685 | done |
| 5686 | IFS=$as_save_IFS |
| 5687 | |
| 5688 | fi |
| 5689 | fi |
| 5690 | AR=$ac_cv_prog_AR |
| 5691 | if test -n "$AR"; then |
| 5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5693 | $as_echo "$AR" >&6; } |
| 5694 | else |
| 5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5696 | $as_echo "no" >&6; } |
| 5697 | fi |
| 5698 | |
| 5699 | |
| 5700 | test -n "$AR" && break |
| 5701 | done |
| 5702 | fi |
| 5703 | if test -z "$AR"; then |
| 5704 | ac_ct_AR=$AR |
| 5705 | for ac_prog in ar |
| 5706 | do |
| 5707 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5708 | set dummy $ac_prog; ac_word=$2 |
| 5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5710 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5711 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 5712 | $as_echo_n "(cached) " >&6 |
| 5713 | else |
| 5714 | if test -n "$ac_ct_AR"; then |
| 5715 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5716 | else |
| 5717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5718 | for as_dir in $PATH |
| 5719 | do |
| 5720 | IFS=$as_save_IFS |
| 5721 | test -z "$as_dir" && as_dir=. |
| 5722 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5724 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 5725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5726 | break 2 |
| 5727 | fi |
| 5728 | done |
| 5729 | done |
| 5730 | IFS=$as_save_IFS |
| 5731 | |
| 5732 | fi |
| 5733 | fi |
| 5734 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5735 | if test -n "$ac_ct_AR"; then |
| 5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5737 | $as_echo "$ac_ct_AR" >&6; } |
| 5738 | else |
| 5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5740 | $as_echo "no" >&6; } |
| 5741 | fi |
| 5742 | |
| 5743 | |
| 5744 | test -n "$ac_ct_AR" && break |
| 5745 | done |
| 5746 | |
| 5747 | if test "x$ac_ct_AR" = x; then |
| 5748 | AR="false" |
| 5749 | else |
| 5750 | case $cross_compiling:$ac_tool_warned in |
| 5751 | yes:) |
| 5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5753 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5754 | ac_tool_warned=yes ;; |
| 5755 | esac |
| 5756 | AR=$ac_ct_AR |
| 5757 | fi |
| 5758 | fi |
| 5759 | |
| 5760 | : ${AR=ar} |
| 5761 | : ${AR_FLAGS=cru} |
| 5762 | |
| 5763 | |
| 5764 | |
| 5765 | |
| 5766 | |
| 5767 | |
| 5768 | |
| 5769 | |
| 5770 | |
| 5771 | |
| 5772 | |
| 5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 5774 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 5775 | if ${lt_cv_ar_at_file+:} false; then : |
| 5776 | $as_echo_n "(cached) " >&6 |
| 5777 | else |
| 5778 | lt_cv_ar_at_file=no |
| 5779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5780 | /* end confdefs.h. */ |
| 5781 | |
| 5782 | int |
| 5783 | main () |
| 5784 | { |
| 5785 | |
| 5786 | ; |
| 5787 | return 0; |
| 5788 | } |
| 5789 | _ACEOF |
| 5790 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5791 | echo conftest.$ac_objext > conftest.lst |
| 5792 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 5793 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5794 | (eval $lt_ar_try) 2>&5 |
| 5795 | ac_status=$? |
| 5796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5797 | test $ac_status = 0; } |
| 5798 | if test 0 -eq "$ac_status"; then |
| 5799 | # Ensure the archiver fails upon bogus file names. |
| 5800 | rm -f conftest.$ac_objext libconftest.a |
| 5801 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5802 | (eval $lt_ar_try) 2>&5 |
| 5803 | ac_status=$? |
| 5804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5805 | test $ac_status = 0; } |
| 5806 | if test 0 -ne "$ac_status"; then |
| 5807 | lt_cv_ar_at_file=@ |
| 5808 | fi |
| 5809 | fi |
| 5810 | rm -f conftest.* libconftest.a |
| 5811 | |
| 5812 | fi |
| 5813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5814 | |
| 5815 | fi |
| 5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 5817 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 5818 | |
| 5819 | if test no = "$lt_cv_ar_at_file"; then |
| 5820 | archiver_list_spec= |
| 5821 | else |
| 5822 | archiver_list_spec=$lt_cv_ar_at_file |
| 5823 | fi |
| 5824 | |
| 5825 | |
| 5826 | |
| 5827 | |
| 5828 | |
| 5829 | |
| 5830 | |
| 5831 | if test -n "$ac_tool_prefix"; then |
| 5832 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5833 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5835 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5836 | if ${ac_cv_prog_STRIP+:} false; then : |
| 5837 | $as_echo_n "(cached) " >&6 |
| 5838 | else |
| 5839 | if test -n "$STRIP"; then |
| 5840 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5841 | else |
| 5842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5843 | for as_dir in $PATH |
| 5844 | do |
| 5845 | IFS=$as_save_IFS |
| 5846 | test -z "$as_dir" && as_dir=. |
| 5847 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5848 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5849 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5851 | break 2 |
| 5852 | fi |
| 5853 | done |
| 5854 | done |
| 5855 | IFS=$as_save_IFS |
| 5856 | |
| 5857 | fi |
| 5858 | fi |
| 5859 | STRIP=$ac_cv_prog_STRIP |
| 5860 | if test -n "$STRIP"; then |
| 5861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5862 | $as_echo "$STRIP" >&6; } |
| 5863 | else |
| 5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5865 | $as_echo "no" >&6; } |
| 5866 | fi |
| 5867 | |
| 5868 | |
| 5869 | fi |
| 5870 | if test -z "$ac_cv_prog_STRIP"; then |
| 5871 | ac_ct_STRIP=$STRIP |
| 5872 | # Extract the first word of "strip", so it can be a program name with args. |
| 5873 | set dummy strip; ac_word=$2 |
| 5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5875 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5876 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 5877 | $as_echo_n "(cached) " >&6 |
| 5878 | else |
| 5879 | if test -n "$ac_ct_STRIP"; then |
| 5880 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5881 | else |
| 5882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5883 | for as_dir in $PATH |
| 5884 | do |
| 5885 | IFS=$as_save_IFS |
| 5886 | test -z "$as_dir" && as_dir=. |
| 5887 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5888 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5889 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5891 | break 2 |
| 5892 | fi |
| 5893 | done |
| 5894 | done |
| 5895 | IFS=$as_save_IFS |
| 5896 | |
| 5897 | fi |
| 5898 | fi |
| 5899 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5900 | if test -n "$ac_ct_STRIP"; then |
| 5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 5902 | $as_echo "$ac_ct_STRIP" >&6; } |
| 5903 | else |
| 5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5905 | $as_echo "no" >&6; } |
| 5906 | fi |
| 5907 | |
| 5908 | if test "x$ac_ct_STRIP" = x; then |
| 5909 | STRIP=":" |
| 5910 | else |
| 5911 | case $cross_compiling:$ac_tool_warned in |
| 5912 | yes:) |
| 5913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5914 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5915 | ac_tool_warned=yes ;; |
| 5916 | esac |
| 5917 | STRIP=$ac_ct_STRIP |
| 5918 | fi |
| 5919 | else |
| 5920 | STRIP="$ac_cv_prog_STRIP" |
| 5921 | fi |
| 5922 | |
| 5923 | test -z "$STRIP" && STRIP=: |
| 5924 | |
| 5925 | |
| 5926 | |
| 5927 | |
| 5928 | |
| 5929 | |
| 5930 | if test -n "$ac_tool_prefix"; then |
| 5931 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5932 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5934 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5935 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 5936 | $as_echo_n "(cached) " >&6 |
| 5937 | else |
| 5938 | if test -n "$RANLIB"; then |
| 5939 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5940 | else |
| 5941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5942 | for as_dir in $PATH |
| 5943 | do |
| 5944 | IFS=$as_save_IFS |
| 5945 | test -z "$as_dir" && as_dir=. |
| 5946 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5948 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5950 | break 2 |
| 5951 | fi |
| 5952 | done |
| 5953 | done |
| 5954 | IFS=$as_save_IFS |
| 5955 | |
| 5956 | fi |
| 5957 | fi |
| 5958 | RANLIB=$ac_cv_prog_RANLIB |
| 5959 | if test -n "$RANLIB"; then |
| 5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5961 | $as_echo "$RANLIB" >&6; } |
| 5962 | else |
| 5963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5964 | $as_echo "no" >&6; } |
| 5965 | fi |
| 5966 | |
| 5967 | |
| 5968 | fi |
| 5969 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5970 | ac_ct_RANLIB=$RANLIB |
| 5971 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5972 | set dummy ranlib; ac_word=$2 |
| 5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5974 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5975 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 5976 | $as_echo_n "(cached) " >&6 |
| 5977 | else |
| 5978 | if test -n "$ac_ct_RANLIB"; then |
| 5979 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5980 | else |
| 5981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5982 | for as_dir in $PATH |
| 5983 | do |
| 5984 | IFS=$as_save_IFS |
| 5985 | test -z "$as_dir" && as_dir=. |
| 5986 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5987 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5988 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5990 | break 2 |
| 5991 | fi |
| 5992 | done |
| 5993 | done |
| 5994 | IFS=$as_save_IFS |
| 5995 | |
| 5996 | fi |
| 5997 | fi |
| 5998 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5999 | if test -n "$ac_ct_RANLIB"; then |
| 6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6001 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6002 | else |
| 6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6004 | $as_echo "no" >&6; } |
| 6005 | fi |
| 6006 | |
| 6007 | if test "x$ac_ct_RANLIB" = x; then |
| 6008 | RANLIB=":" |
| 6009 | else |
| 6010 | case $cross_compiling:$ac_tool_warned in |
| 6011 | yes:) |
| 6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6013 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6014 | ac_tool_warned=yes ;; |
| 6015 | esac |
| 6016 | RANLIB=$ac_ct_RANLIB |
| 6017 | fi |
| 6018 | else |
| 6019 | RANLIB="$ac_cv_prog_RANLIB" |
| 6020 | fi |
| 6021 | |
| 6022 | test -z "$RANLIB" && RANLIB=: |
| 6023 | |
| 6024 | |
| 6025 | |
| 6026 | |
| 6027 | |
| 6028 | |
| 6029 | # Determine commands to create old-style static archives. |
| 6030 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6031 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6032 | old_postuninstall_cmds= |
| 6033 | |
| 6034 | if test -n "$RANLIB"; then |
| 6035 | case $host_os in |
| 6036 | bitrig* | openbsd*) |
| 6037 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 6038 | ;; |
| 6039 | *) |
| 6040 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 6041 | ;; |
| 6042 | esac |
| 6043 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 6044 | fi |
| 6045 | |
| 6046 | case $host_os in |
| 6047 | darwin*) |
| 6048 | lock_old_archive_extraction=yes ;; |
| 6049 | *) |
| 6050 | lock_old_archive_extraction=no ;; |
| 6051 | esac |
| 6052 | |
| 6053 | |
| 6054 | |
| 6055 | |
| 6056 | |
| 6057 | |
| 6058 | |
| 6059 | |
| 6060 | |
| 6061 | |
| 6062 | |
| 6063 | |
| 6064 | |
| 6065 | |
| 6066 | |
| 6067 | |
| 6068 | |
| 6069 | |
| 6070 | |
| 6071 | |
| 6072 | |
| 6073 | |
| 6074 | |
| 6075 | |
| 6076 | |
| 6077 | |
| 6078 | |
| 6079 | |
| 6080 | |
| 6081 | |
| 6082 | |
| 6083 | |
| 6084 | |
| 6085 | |
| 6086 | |
| 6087 | |
| 6088 | |
| 6089 | |
| 6090 | |
| 6091 | # If no C compiler was specified, use CC. |
| 6092 | LTCC=${LTCC-"$CC"} |
| 6093 | |
| 6094 | # If no C compiler flags were specified, use CFLAGS. |
| 6095 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6096 | |
| 6097 | # Allow CC to be a program name with arguments. |
| 6098 | compiler=$CC |
| 6099 | |
| 6100 | |
| 6101 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6103 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6104 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 6105 | $as_echo_n "(cached) " >&6 |
| 6106 | else |
| 6107 | |
| 6108 | # These are sane defaults that work on at least a few old systems. |
| 6109 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6110 | |
| 6111 | # Character class describing NM global symbol codes. |
| 6112 | symcode='[BCDEGRST]' |
| 6113 | |
| 6114 | # Regexp to match symbols that can be accessed directly from C. |
| 6115 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6116 | |
| 6117 | # Define system-specific variables. |
| 6118 | case $host_os in |
| 6119 | aix*) |
| 6120 | symcode='[BCDT]' |
| 6121 | ;; |
| 6122 | cygwin* | mingw* | pw32* | cegcc*) |
| 6123 | symcode='[ABCDGISTW]' |
| 6124 | ;; |
| 6125 | hpux*) |
| 6126 | if test ia64 = "$host_cpu"; then |
| 6127 | symcode='[ABCDEGRST]' |
| 6128 | fi |
| 6129 | ;; |
| 6130 | irix* | nonstopux*) |
| 6131 | symcode='[BCDEGRST]' |
| 6132 | ;; |
| 6133 | osf*) |
| 6134 | symcode='[BCDEGQRST]' |
| 6135 | ;; |
| 6136 | solaris*) |
| 6137 | symcode='[BDRT]' |
| 6138 | ;; |
| 6139 | sco3.2v5*) |
| 6140 | symcode='[DT]' |
| 6141 | ;; |
| 6142 | sysv4.2uw2*) |
| 6143 | symcode='[DT]' |
| 6144 | ;; |
| 6145 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6146 | symcode='[ABDT]' |
| 6147 | ;; |
| 6148 | sysv4) |
| 6149 | symcode='[DFNSTU]' |
| 6150 | ;; |
| 6151 | esac |
| 6152 | |
| 6153 | # If we're using GNU nm, then use its standard symbol codes. |
| 6154 | case `$NM -V 2>&1` in |
| 6155 | *GNU* | *'with BFD'*) |
| 6156 | symcode='[ABCDGIRSTW]' ;; |
| 6157 | esac |
| 6158 | |
| 6159 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6160 | # Gets list of data symbols to import. |
| 6161 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
| 6162 | # Adjust the below global symbol transforms to fixup imported variables. |
| 6163 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 6164 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 6165 | lt_c_name_lib_hook="\ |
| 6166 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 6167 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 6168 | else |
| 6169 | # Disable hooks by default. |
| 6170 | lt_cv_sys_global_symbol_to_import= |
| 6171 | lt_cdecl_hook= |
| 6172 | lt_c_name_hook= |
| 6173 | lt_c_name_lib_hook= |
| 6174 | fi |
| 6175 | |
| 6176 | # Transform an extracted symbol line into a proper C declaration. |
| 6177 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6178 | # so use this general approach. |
| 6179 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
| 6180 | $lt_cdecl_hook\ |
| 6181 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 6182 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6183 | |
| 6184 | # Transform an extracted symbol line into symbol name and symbol address |
| 6185 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
| 6186 | $lt_c_name_hook\ |
| 6187 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 6188 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 6189 | |
| 6190 | # Transform an extracted symbol line into symbol name with lib prefix and |
| 6191 | # symbol address. |
| 6192 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
| 6193 | $lt_c_name_lib_hook\ |
| 6194 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 6195 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 6196 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 6197 | |
| 6198 | # Handle CRLF in mingw tool chain |
| 6199 | opt_cr= |
| 6200 | case $build_os in |
| 6201 | mingw*) |
| 6202 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6203 | ;; |
| 6204 | esac |
| 6205 | |
| 6206 | # Try without a prefix underscore, then with it. |
| 6207 | for ac_symprfx in "" "_"; do |
| 6208 | |
| 6209 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6210 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6211 | |
| 6212 | # Write the raw and C identifiers. |
| 6213 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6214 | # Fake it for dumpbin and say T for any non-static function, |
| 6215 | # D for any global variable and I for any imported variable. |
| 6216 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6217 | # which start with @ or ?. |
| 6218 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6219 | " {last_section=section; section=\$ 3};"\ |
| 6220 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 6221 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6222 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 6223 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 6224 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 6225 | " \$ 0!~/External *\|/{next};"\ |
| 6226 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6227 | " {if(hide[section]) next};"\ |
| 6228 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 6229 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 6230 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 6231 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 6232 | " ' prfx=^$ac_symprfx" |
| 6233 | else |
| 6234 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6235 | fi |
| 6236 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 6237 | |
| 6238 | # Check to see that the pipe works correctly. |
| 6239 | pipe_works=no |
| 6240 | |
| 6241 | rm -f conftest* |
| 6242 | cat > conftest.$ac_ext <<_LT_EOF |
| 6243 | #ifdef __cplusplus |
| 6244 | extern "C" { |
| 6245 | #endif |
| 6246 | char nm_test_var; |
| 6247 | void nm_test_func(void); |
| 6248 | void nm_test_func(void){} |
| 6249 | #ifdef __cplusplus |
| 6250 | } |
| 6251 | #endif |
| 6252 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6253 | _LT_EOF |
| 6254 | |
| 6255 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6256 | (eval $ac_compile) 2>&5 |
| 6257 | ac_status=$? |
| 6258 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6259 | test $ac_status = 0; }; then |
| 6260 | # Now try to grab the symbols. |
| 6261 | nlist=conftest.nm |
| 6262 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6263 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 6264 | ac_status=$? |
| 6265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6266 | test $ac_status = 0; } && test -s "$nlist"; then |
| 6267 | # Try sorting and uniquifying the output. |
| 6268 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6269 | mv -f "$nlist"T "$nlist" |
| 6270 | else |
| 6271 | rm -f "$nlist"T |
| 6272 | fi |
| 6273 | |
| 6274 | # Make sure that we snagged all the symbols we need. |
| 6275 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6276 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6277 | cat <<_LT_EOF > conftest.$ac_ext |
| 6278 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 6279 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 6280 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 6281 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 6282 | # define LT_DLSYM_CONST |
| 6283 | #elif defined __osf__ |
| 6284 | /* This system does not cope well with relocations in const data. */ |
| 6285 | # define LT_DLSYM_CONST |
| 6286 | #else |
| 6287 | # define LT_DLSYM_CONST const |
| 6288 | #endif |
| 6289 | |
| 6290 | #ifdef __cplusplus |
| 6291 | extern "C" { |
| 6292 | #endif |
| 6293 | |
| 6294 | _LT_EOF |
| 6295 | # Now generate the symbol file. |
| 6296 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 6297 | |
| 6298 | cat <<_LT_EOF >> conftest.$ac_ext |
| 6299 | |
| 6300 | /* The mapping between symbol names and symbols. */ |
| 6301 | LT_DLSYM_CONST struct { |
| 6302 | const char *name; |
| 6303 | void *address; |
| 6304 | } |
| 6305 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 6306 | { |
| 6307 | { "@PROGRAM@", (void *) 0 }, |
| 6308 | _LT_EOF |
| 6309 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6310 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6311 | {0, (void *) 0} |
| 6312 | }; |
| 6313 | |
| 6314 | /* This works around a problem in FreeBSD linker */ |
| 6315 | #ifdef FREEBSD_WORKAROUND |
| 6316 | static const void *lt_preloaded_setup() { |
| 6317 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6318 | } |
| 6319 | #endif |
| 6320 | |
| 6321 | #ifdef __cplusplus |
| 6322 | } |
| 6323 | #endif |
| 6324 | _LT_EOF |
| 6325 | # Now try linking the two files. |
| 6326 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6327 | lt_globsym_save_LIBS=$LIBS |
| 6328 | lt_globsym_save_CFLAGS=$CFLAGS |
| 6329 | LIBS=conftstm.$ac_objext |
| 6330 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6331 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 6332 | (eval $ac_link) 2>&5 |
| 6333 | ac_status=$? |
| 6334 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6335 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 6336 | pipe_works=yes |
| 6337 | fi |
| 6338 | LIBS=$lt_globsym_save_LIBS |
| 6339 | CFLAGS=$lt_globsym_save_CFLAGS |
| 6340 | else |
| 6341 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6342 | fi |
| 6343 | else |
| 6344 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6345 | fi |
| 6346 | else |
| 6347 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6348 | fi |
| 6349 | else |
| 6350 | echo "$progname: failed program was:" >&5 |
| 6351 | cat conftest.$ac_ext >&5 |
| 6352 | fi |
| 6353 | rm -rf conftest* conftst* |
| 6354 | |
| 6355 | # Do not use the global_symbol_pipe unless it works. |
| 6356 | if test yes = "$pipe_works"; then |
| 6357 | break |
| 6358 | else |
| 6359 | lt_cv_sys_global_symbol_pipe= |
| 6360 | fi |
| 6361 | done |
| 6362 | |
| 6363 | fi |
| 6364 | |
| 6365 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6366 | lt_cv_sys_global_symbol_to_cdecl= |
| 6367 | fi |
| 6368 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6370 | $as_echo "failed" >&6; } |
| 6371 | else |
| 6372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6373 | $as_echo "ok" >&6; } |
| 6374 | fi |
| 6375 | |
| 6376 | # Response file support. |
| 6377 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6378 | nm_file_list_spec='@' |
| 6379 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 6380 | nm_file_list_spec='@' |
| 6381 | fi |
| 6382 | |
| 6383 | |
| 6384 | |
| 6385 | |
| 6386 | |
| 6387 | |
| 6388 | |
| 6389 | |
| 6390 | |
| 6391 | |
| 6392 | |
| 6393 | |
| 6394 | |
| 6395 | |
| 6396 | |
| 6397 | |
| 6398 | |
| 6399 | |
| 6400 | |
| 6401 | |
| 6402 | |
| 6403 | |
| 6404 | |
| 6405 | |
| 6406 | |
| 6407 | |
| 6408 | |
| 6409 | |
| 6410 | |
| 6411 | |
| 6412 | |
| 6413 | |
| 6414 | |
| 6415 | |
| 6416 | |
| 6417 | |
| 6418 | |
| 6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6420 | $as_echo_n "checking for sysroot... " >&6; } |
| 6421 | |
| 6422 | # Check whether --with-sysroot was given. |
| 6423 | if test "${with_sysroot+set}" = set; then : |
| 6424 | withval=$with_sysroot; |
| 6425 | else |
| 6426 | with_sysroot=no |
| 6427 | fi |
| 6428 | |
| 6429 | |
| 6430 | lt_sysroot= |
| 6431 | case $with_sysroot in #( |
| 6432 | yes) |
| 6433 | if test yes = "$GCC"; then |
| 6434 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6435 | fi |
| 6436 | ;; #( |
| 6437 | /*) |
| 6438 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 6439 | ;; #( |
| 6440 | no|'') |
| 6441 | ;; #( |
| 6442 | *) |
| 6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 6444 | $as_echo "$with_sysroot" >&6; } |
| 6445 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6446 | ;; |
| 6447 | esac |
| 6448 | |
| 6449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 6450 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 6451 | |
| 6452 | |
| 6453 | |
| 6454 | |
| 6455 | |
| 6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 6457 | $as_echo_n "checking for a working dd... " >&6; } |
| 6458 | if ${ac_cv_path_lt_DD+:} false; then : |
| 6459 | $as_echo_n "(cached) " >&6 |
| 6460 | else |
| 6461 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 6462 | cat conftest.i conftest.i >conftest2.i |
| 6463 | : ${lt_DD:=$DD} |
| 6464 | if test -z "$lt_DD"; then |
| 6465 | ac_path_lt_DD_found=false |
| 6466 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6468 | for as_dir in $PATH |
| 6469 | do |
| 6470 | IFS=$as_save_IFS |
| 6471 | test -z "$as_dir" && as_dir=. |
| 6472 | for ac_prog in dd; do |
| 6473 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6474 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
| 6475 | as_fn_executable_p "$ac_path_lt_DD" || continue |
| 6476 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 6477 | cmp -s conftest.i conftest.out \ |
| 6478 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 6479 | fi |
| 6480 | $ac_path_lt_DD_found && break 3 |
| 6481 | done |
| 6482 | done |
| 6483 | done |
| 6484 | IFS=$as_save_IFS |
| 6485 | if test -z "$ac_cv_path_lt_DD"; then |
| 6486 | : |
| 6487 | fi |
| 6488 | else |
| 6489 | ac_cv_path_lt_DD=$lt_DD |
| 6490 | fi |
| 6491 | |
| 6492 | rm -f conftest.i conftest2.i conftest.out |
| 6493 | fi |
| 6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 6495 | $as_echo "$ac_cv_path_lt_DD" >&6; } |
| 6496 | |
| 6497 | |
| 6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 6499 | $as_echo_n "checking how to truncate binary pipes... " >&6; } |
| 6500 | if ${lt_cv_truncate_bin+:} false; then : |
| 6501 | $as_echo_n "(cached) " >&6 |
| 6502 | else |
| 6503 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 6504 | cat conftest.i conftest.i >conftest2.i |
| 6505 | lt_cv_truncate_bin= |
| 6506 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 6507 | cmp -s conftest.i conftest.out \ |
| 6508 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 6509 | fi |
| 6510 | rm -f conftest.i conftest2.i conftest.out |
| 6511 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
| 6512 | fi |
| 6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 6514 | $as_echo "$lt_cv_truncate_bin" >&6; } |
| 6515 | |
| 6516 | |
| 6517 | |
| 6518 | |
| 6519 | |
| 6520 | |
| 6521 | |
| 6522 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 6523 | func_cc_basename () |
| 6524 | { |
| 6525 | for cc_temp in $*""; do |
| 6526 | case $cc_temp in |
| 6527 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6528 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6529 | \-*) ;; |
| 6530 | *) break;; |
| 6531 | esac |
| 6532 | done |
| 6533 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 6534 | } |
| 6535 | |
| 6536 | # Check whether --enable-libtool-lock was given. |
| 6537 | if test "${enable_libtool_lock+set}" = set; then : |
| 6538 | enableval=$enable_libtool_lock; |
| 6539 | fi |
| 6540 | |
| 6541 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 6542 | |
| 6543 | # Some flags need to be propagated to the compiler or linker for good |
| 6544 | # libtool support. |
| 6545 | case $host in |
| 6546 | ia64-*-hpux*) |
| 6547 | # Find out what ABI is being produced by ac_compile, and set mode |
| 6548 | # options accordingly. |
| 6549 | echo 'int i;' > conftest.$ac_ext |
| 6550 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6551 | (eval $ac_compile) 2>&5 |
| 6552 | ac_status=$? |
| 6553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6554 | test $ac_status = 0; }; then |
| 6555 | case `/usr/bin/file conftest.$ac_objext` in |
| 6556 | *ELF-32*) |
| 6557 | HPUX_IA64_MODE=32 |
| 6558 | ;; |
| 6559 | *ELF-64*) |
| 6560 | HPUX_IA64_MODE=64 |
| 6561 | ;; |
| 6562 | esac |
| 6563 | fi |
| 6564 | rm -rf conftest* |
| 6565 | ;; |
| 6566 | *-*-irix6*) |
| 6567 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6568 | # options accordingly. |
| 6569 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6570 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6571 | (eval $ac_compile) 2>&5 |
| 6572 | ac_status=$? |
| 6573 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6574 | test $ac_status = 0; }; then |
| 6575 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 6576 | case `/usr/bin/file conftest.$ac_objext` in |
| 6577 | *32-bit*) |
| 6578 | LD="${LD-ld} -melf32bsmip" |
| 6579 | ;; |
| 6580 | *N32*) |
| 6581 | LD="${LD-ld} -melf32bmipn32" |
| 6582 | ;; |
| 6583 | *64-bit*) |
| 6584 | LD="${LD-ld} -melf64bmip" |
| 6585 | ;; |
| 6586 | esac |
| 6587 | else |
| 6588 | case `/usr/bin/file conftest.$ac_objext` in |
| 6589 | *32-bit*) |
| 6590 | LD="${LD-ld} -32" |
| 6591 | ;; |
| 6592 | *N32*) |
| 6593 | LD="${LD-ld} -n32" |
| 6594 | ;; |
| 6595 | *64-bit*) |
| 6596 | LD="${LD-ld} -64" |
| 6597 | ;; |
| 6598 | esac |
| 6599 | fi |
| 6600 | fi |
| 6601 | rm -rf conftest* |
| 6602 | ;; |
| 6603 | |
| 6604 | mips64*-*linux*) |
| 6605 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6606 | # options accordingly. |
| 6607 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6608 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6609 | (eval $ac_compile) 2>&5 |
| 6610 | ac_status=$? |
| 6611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6612 | test $ac_status = 0; }; then |
| 6613 | emul=elf |
| 6614 | case `/usr/bin/file conftest.$ac_objext` in |
| 6615 | *32-bit*) |
| 6616 | emul="${emul}32" |
| 6617 | ;; |
| 6618 | *64-bit*) |
| 6619 | emul="${emul}64" |
| 6620 | ;; |
| 6621 | esac |
| 6622 | case `/usr/bin/file conftest.$ac_objext` in |
| 6623 | *MSB*) |
| 6624 | emul="${emul}btsmip" |
| 6625 | ;; |
| 6626 | *LSB*) |
| 6627 | emul="${emul}ltsmip" |
| 6628 | ;; |
| 6629 | esac |
| 6630 | case `/usr/bin/file conftest.$ac_objext` in |
| 6631 | *N32*) |
| 6632 | emul="${emul}n32" |
| 6633 | ;; |
| 6634 | esac |
| 6635 | LD="${LD-ld} -m $emul" |
| 6636 | fi |
| 6637 | rm -rf conftest* |
| 6638 | ;; |
| 6639 | |
| 6640 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 6641 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6642 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6643 | # options accordingly. Note that the listed cases only cover the |
| 6644 | # situations where additional linker options are needed (such as when |
| 6645 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 6646 | # vice versa); the common cases where no linker options are needed do |
| 6647 | # not appear in the list. |
| 6648 | echo 'int i;' > conftest.$ac_ext |
| 6649 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6650 | (eval $ac_compile) 2>&5 |
| 6651 | ac_status=$? |
| 6652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6653 | test $ac_status = 0; }; then |
| 6654 | case `/usr/bin/file conftest.o` in |
| 6655 | *32-bit*) |
| 6656 | case $host in |
| 6657 | x86_64-*kfreebsd*-gnu) |
| 6658 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6659 | ;; |
| 6660 | x86_64-*linux*) |
| 6661 | case `/usr/bin/file conftest.o` in |
| 6662 | *x86-64*) |
| 6663 | LD="${LD-ld} -m elf32_x86_64" |
| 6664 | ;; |
| 6665 | *) |
| 6666 | LD="${LD-ld} -m elf_i386" |
| 6667 | ;; |
| 6668 | esac |
| 6669 | ;; |
| 6670 | powerpc64le-*linux*) |
| 6671 | LD="${LD-ld} -m elf32lppclinux" |
| 6672 | ;; |
| 6673 | powerpc64-*linux*) |
| 6674 | LD="${LD-ld} -m elf32ppclinux" |
| 6675 | ;; |
| 6676 | s390x-*linux*) |
| 6677 | LD="${LD-ld} -m elf_s390" |
| 6678 | ;; |
| 6679 | sparc64-*linux*) |
| 6680 | LD="${LD-ld} -m elf32_sparc" |
| 6681 | ;; |
| 6682 | esac |
| 6683 | ;; |
| 6684 | *64-bit*) |
| 6685 | case $host in |
| 6686 | x86_64-*kfreebsd*-gnu) |
| 6687 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6688 | ;; |
| 6689 | x86_64-*linux*) |
| 6690 | LD="${LD-ld} -m elf_x86_64" |
| 6691 | ;; |
| 6692 | powerpcle-*linux*) |
| 6693 | LD="${LD-ld} -m elf64lppc" |
| 6694 | ;; |
| 6695 | powerpc-*linux*) |
| 6696 | LD="${LD-ld} -m elf64ppc" |
| 6697 | ;; |
| 6698 | s390*-*linux*|s390*-*tpf*) |
| 6699 | LD="${LD-ld} -m elf64_s390" |
| 6700 | ;; |
| 6701 | sparc*-*linux*) |
| 6702 | LD="${LD-ld} -m elf64_sparc" |
| 6703 | ;; |
| 6704 | esac |
| 6705 | ;; |
| 6706 | esac |
| 6707 | fi |
| 6708 | rm -rf conftest* |
| 6709 | ;; |
| 6710 | |
| 6711 | *-*-sco3.2v5*) |
| 6712 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6713 | SAVE_CFLAGS=$CFLAGS |
| 6714 | CFLAGS="$CFLAGS -belf" |
| 6715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 6716 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6717 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 6718 | $as_echo_n "(cached) " >&6 |
| 6719 | else |
| 6720 | ac_ext=c |
| 6721 | ac_cpp='$CPP $CPPFLAGS' |
| 6722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6725 | |
| 6726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6727 | /* end confdefs.h. */ |
| 6728 | |
| 6729 | int |
| 6730 | main () |
| 6731 | { |
| 6732 | |
| 6733 | ; |
| 6734 | return 0; |
| 6735 | } |
| 6736 | _ACEOF |
| 6737 | if ac_fn_c_try_link "$LINENO"; then : |
| 6738 | lt_cv_cc_needs_belf=yes |
| 6739 | else |
| 6740 | lt_cv_cc_needs_belf=no |
| 6741 | fi |
| 6742 | rm -f core conftest.err conftest.$ac_objext \ |
| 6743 | conftest$ac_exeext conftest.$ac_ext |
| 6744 | ac_ext=c |
| 6745 | ac_cpp='$CPP $CPPFLAGS' |
| 6746 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6747 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6748 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6749 | |
| 6750 | fi |
| 6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6752 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6753 | if test yes != "$lt_cv_cc_needs_belf"; then |
| 6754 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6755 | CFLAGS=$SAVE_CFLAGS |
| 6756 | fi |
| 6757 | ;; |
| 6758 | *-*solaris*) |
| 6759 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6760 | # options accordingly. |
| 6761 | echo 'int i;' > conftest.$ac_ext |
| 6762 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6763 | (eval $ac_compile) 2>&5 |
| 6764 | ac_status=$? |
| 6765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6766 | test $ac_status = 0; }; then |
| 6767 | case `/usr/bin/file conftest.o` in |
| 6768 | *64-bit*) |
| 6769 | case $lt_cv_prog_gnu_ld in |
| 6770 | yes*) |
| 6771 | case $host in |
| 6772 | i?86-*-solaris*|x86_64-*-solaris*) |
| 6773 | LD="${LD-ld} -m elf_x86_64" |
| 6774 | ;; |
| 6775 | sparc*-*-solaris*) |
| 6776 | LD="${LD-ld} -m elf64_sparc" |
| 6777 | ;; |
| 6778 | esac |
| 6779 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 6780 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 6781 | LD=${LD-ld}_sol2 |
| 6782 | fi |
| 6783 | ;; |
| 6784 | *) |
| 6785 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6786 | LD="${LD-ld} -64" |
| 6787 | fi |
| 6788 | ;; |
| 6789 | esac |
| 6790 | ;; |
| 6791 | esac |
| 6792 | fi |
| 6793 | rm -rf conftest* |
| 6794 | ;; |
| 6795 | esac |
| 6796 | |
| 6797 | need_locks=$enable_libtool_lock |
| 6798 | |
| 6799 | if test -n "$ac_tool_prefix"; then |
| 6800 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 6801 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 6802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6803 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6804 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 6805 | $as_echo_n "(cached) " >&6 |
| 6806 | else |
| 6807 | if test -n "$MANIFEST_TOOL"; then |
| 6808 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 6809 | else |
| 6810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6811 | for as_dir in $PATH |
| 6812 | do |
| 6813 | IFS=$as_save_IFS |
| 6814 | test -z "$as_dir" && as_dir=. |
| 6815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6816 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6817 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 6818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6819 | break 2 |
| 6820 | fi |
| 6821 | done |
| 6822 | done |
| 6823 | IFS=$as_save_IFS |
| 6824 | |
| 6825 | fi |
| 6826 | fi |
| 6827 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 6828 | if test -n "$MANIFEST_TOOL"; then |
| 6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 6830 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 6831 | else |
| 6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6833 | $as_echo "no" >&6; } |
| 6834 | fi |
| 6835 | |
| 6836 | |
| 6837 | fi |
| 6838 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 6839 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 6840 | # Extract the first word of "mt", so it can be a program name with args. |
| 6841 | set dummy mt; ac_word=$2 |
| 6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6843 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6844 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 6845 | $as_echo_n "(cached) " >&6 |
| 6846 | else |
| 6847 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6848 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 6849 | else |
| 6850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6851 | for as_dir in $PATH |
| 6852 | do |
| 6853 | IFS=$as_save_IFS |
| 6854 | test -z "$as_dir" && as_dir=. |
| 6855 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6857 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 6858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6859 | break 2 |
| 6860 | fi |
| 6861 | done |
| 6862 | done |
| 6863 | IFS=$as_save_IFS |
| 6864 | |
| 6865 | fi |
| 6866 | fi |
| 6867 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 6868 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 6870 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 6871 | else |
| 6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6873 | $as_echo "no" >&6; } |
| 6874 | fi |
| 6875 | |
| 6876 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 6877 | MANIFEST_TOOL=":" |
| 6878 | else |
| 6879 | case $cross_compiling:$ac_tool_warned in |
| 6880 | yes:) |
| 6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6882 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6883 | ac_tool_warned=yes ;; |
| 6884 | esac |
| 6885 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 6886 | fi |
| 6887 | else |
| 6888 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 6889 | fi |
| 6890 | |
| 6891 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 6893 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 6894 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 6895 | $as_echo_n "(cached) " >&6 |
| 6896 | else |
| 6897 | lt_cv_path_mainfest_tool=no |
| 6898 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 6899 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 6900 | cat conftest.err >&5 |
| 6901 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 6902 | lt_cv_path_mainfest_tool=yes |
| 6903 | fi |
| 6904 | rm -f conftest* |
| 6905 | fi |
| 6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 6907 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 6908 | if test yes != "$lt_cv_path_mainfest_tool"; then |
| 6909 | MANIFEST_TOOL=: |
| 6910 | fi |
| 6911 | |
| 6912 | |
| 6913 | |
| 6914 | |
| 6915 | |
| 6916 | |
| 6917 | case $host_os in |
| 6918 | rhapsody* | darwin*) |
| 6919 | if test -n "$ac_tool_prefix"; then |
| 6920 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6921 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 6922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6923 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6924 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 6925 | $as_echo_n "(cached) " >&6 |
| 6926 | else |
| 6927 | if test -n "$DSYMUTIL"; then |
| 6928 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6929 | else |
| 6930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6931 | for as_dir in $PATH |
| 6932 | do |
| 6933 | IFS=$as_save_IFS |
| 6934 | test -z "$as_dir" && as_dir=. |
| 6935 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6937 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 6938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6939 | break 2 |
| 6940 | fi |
| 6941 | done |
| 6942 | done |
| 6943 | IFS=$as_save_IFS |
| 6944 | |
| 6945 | fi |
| 6946 | fi |
| 6947 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6948 | if test -n "$DSYMUTIL"; then |
| 6949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 6950 | $as_echo "$DSYMUTIL" >&6; } |
| 6951 | else |
| 6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6953 | $as_echo "no" >&6; } |
| 6954 | fi |
| 6955 | |
| 6956 | |
| 6957 | fi |
| 6958 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6959 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6960 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6961 | set dummy dsymutil; ac_word=$2 |
| 6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6963 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6964 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 6965 | $as_echo_n "(cached) " >&6 |
| 6966 | else |
| 6967 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6968 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6969 | else |
| 6970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6971 | for as_dir in $PATH |
| 6972 | do |
| 6973 | IFS=$as_save_IFS |
| 6974 | test -z "$as_dir" && as_dir=. |
| 6975 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6977 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 6978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6979 | break 2 |
| 6980 | fi |
| 6981 | done |
| 6982 | done |
| 6983 | IFS=$as_save_IFS |
| 6984 | |
| 6985 | fi |
| 6986 | fi |
| 6987 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6988 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 6990 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 6991 | else |
| 6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6993 | $as_echo "no" >&6; } |
| 6994 | fi |
| 6995 | |
| 6996 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6997 | DSYMUTIL=":" |
| 6998 | else |
| 6999 | case $cross_compiling:$ac_tool_warned in |
| 7000 | yes:) |
| 7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7002 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7003 | ac_tool_warned=yes ;; |
| 7004 | esac |
| 7005 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 7006 | fi |
| 7007 | else |
| 7008 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 7009 | fi |
| 7010 | |
| 7011 | if test -n "$ac_tool_prefix"; then |
| 7012 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 7013 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7015 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7016 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 7017 | $as_echo_n "(cached) " >&6 |
| 7018 | else |
| 7019 | if test -n "$NMEDIT"; then |
| 7020 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 7021 | else |
| 7022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7023 | for as_dir in $PATH |
| 7024 | do |
| 7025 | IFS=$as_save_IFS |
| 7026 | test -z "$as_dir" && as_dir=. |
| 7027 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7029 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 7030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7031 | break 2 |
| 7032 | fi |
| 7033 | done |
| 7034 | done |
| 7035 | IFS=$as_save_IFS |
| 7036 | |
| 7037 | fi |
| 7038 | fi |
| 7039 | NMEDIT=$ac_cv_prog_NMEDIT |
| 7040 | if test -n "$NMEDIT"; then |
| 7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 7042 | $as_echo "$NMEDIT" >&6; } |
| 7043 | else |
| 7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7045 | $as_echo "no" >&6; } |
| 7046 | fi |
| 7047 | |
| 7048 | |
| 7049 | fi |
| 7050 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 7051 | ac_ct_NMEDIT=$NMEDIT |
| 7052 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 7053 | set dummy nmedit; ac_word=$2 |
| 7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7055 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7056 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 7057 | $as_echo_n "(cached) " >&6 |
| 7058 | else |
| 7059 | if test -n "$ac_ct_NMEDIT"; then |
| 7060 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 7061 | else |
| 7062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7063 | for as_dir in $PATH |
| 7064 | do |
| 7065 | IFS=$as_save_IFS |
| 7066 | test -z "$as_dir" && as_dir=. |
| 7067 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7068 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7069 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 7070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7071 | break 2 |
| 7072 | fi |
| 7073 | done |
| 7074 | done |
| 7075 | IFS=$as_save_IFS |
| 7076 | |
| 7077 | fi |
| 7078 | fi |
| 7079 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 7080 | if test -n "$ac_ct_NMEDIT"; then |
| 7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 7082 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 7083 | else |
| 7084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7085 | $as_echo "no" >&6; } |
| 7086 | fi |
| 7087 | |
| 7088 | if test "x$ac_ct_NMEDIT" = x; then |
| 7089 | NMEDIT=":" |
| 7090 | else |
| 7091 | case $cross_compiling:$ac_tool_warned in |
| 7092 | yes:) |
| 7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7094 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7095 | ac_tool_warned=yes ;; |
| 7096 | esac |
| 7097 | NMEDIT=$ac_ct_NMEDIT |
| 7098 | fi |
| 7099 | else |
| 7100 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 7101 | fi |
| 7102 | |
| 7103 | if test -n "$ac_tool_prefix"; then |
| 7104 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 7105 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 7106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7107 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7108 | if ${ac_cv_prog_LIPO+:} false; then : |
| 7109 | $as_echo_n "(cached) " >&6 |
| 7110 | else |
| 7111 | if test -n "$LIPO"; then |
| 7112 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 7113 | else |
| 7114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7115 | for as_dir in $PATH |
| 7116 | do |
| 7117 | IFS=$as_save_IFS |
| 7118 | test -z "$as_dir" && as_dir=. |
| 7119 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7120 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7121 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 7122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7123 | break 2 |
| 7124 | fi |
| 7125 | done |
| 7126 | done |
| 7127 | IFS=$as_save_IFS |
| 7128 | |
| 7129 | fi |
| 7130 | fi |
| 7131 | LIPO=$ac_cv_prog_LIPO |
| 7132 | if test -n "$LIPO"; then |
| 7133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 7134 | $as_echo "$LIPO" >&6; } |
| 7135 | else |
| 7136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7137 | $as_echo "no" >&6; } |
| 7138 | fi |
| 7139 | |
| 7140 | |
| 7141 | fi |
| 7142 | if test -z "$ac_cv_prog_LIPO"; then |
| 7143 | ac_ct_LIPO=$LIPO |
| 7144 | # Extract the first word of "lipo", so it can be a program name with args. |
| 7145 | set dummy lipo; ac_word=$2 |
| 7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7147 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7148 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 7149 | $as_echo_n "(cached) " >&6 |
| 7150 | else |
| 7151 | if test -n "$ac_ct_LIPO"; then |
| 7152 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 7153 | else |
| 7154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7155 | for as_dir in $PATH |
| 7156 | do |
| 7157 | IFS=$as_save_IFS |
| 7158 | test -z "$as_dir" && as_dir=. |
| 7159 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7161 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 7162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7163 | break 2 |
| 7164 | fi |
| 7165 | done |
| 7166 | done |
| 7167 | IFS=$as_save_IFS |
| 7168 | |
| 7169 | fi |
| 7170 | fi |
| 7171 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 7172 | if test -n "$ac_ct_LIPO"; then |
| 7173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 7174 | $as_echo "$ac_ct_LIPO" >&6; } |
| 7175 | else |
| 7176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7177 | $as_echo "no" >&6; } |
| 7178 | fi |
| 7179 | |
| 7180 | if test "x$ac_ct_LIPO" = x; then |
| 7181 | LIPO=":" |
| 7182 | else |
| 7183 | case $cross_compiling:$ac_tool_warned in |
| 7184 | yes:) |
| 7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7186 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7187 | ac_tool_warned=yes ;; |
| 7188 | esac |
| 7189 | LIPO=$ac_ct_LIPO |
| 7190 | fi |
| 7191 | else |
| 7192 | LIPO="$ac_cv_prog_LIPO" |
| 7193 | fi |
| 7194 | |
| 7195 | if test -n "$ac_tool_prefix"; then |
| 7196 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 7197 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7199 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7200 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 7201 | $as_echo_n "(cached) " >&6 |
| 7202 | else |
| 7203 | if test -n "$OTOOL"; then |
| 7204 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 7205 | else |
| 7206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7207 | for as_dir in $PATH |
| 7208 | do |
| 7209 | IFS=$as_save_IFS |
| 7210 | test -z "$as_dir" && as_dir=. |
| 7211 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7213 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 7214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7215 | break 2 |
| 7216 | fi |
| 7217 | done |
| 7218 | done |
| 7219 | IFS=$as_save_IFS |
| 7220 | |
| 7221 | fi |
| 7222 | fi |
| 7223 | OTOOL=$ac_cv_prog_OTOOL |
| 7224 | if test -n "$OTOOL"; then |
| 7225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 7226 | $as_echo "$OTOOL" >&6; } |
| 7227 | else |
| 7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7229 | $as_echo "no" >&6; } |
| 7230 | fi |
| 7231 | |
| 7232 | |
| 7233 | fi |
| 7234 | if test -z "$ac_cv_prog_OTOOL"; then |
| 7235 | ac_ct_OTOOL=$OTOOL |
| 7236 | # Extract the first word of "otool", so it can be a program name with args. |
| 7237 | set dummy otool; ac_word=$2 |
| 7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7239 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7240 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 7241 | $as_echo_n "(cached) " >&6 |
| 7242 | else |
| 7243 | if test -n "$ac_ct_OTOOL"; then |
| 7244 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 7245 | else |
| 7246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7247 | for as_dir in $PATH |
| 7248 | do |
| 7249 | IFS=$as_save_IFS |
| 7250 | test -z "$as_dir" && as_dir=. |
| 7251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7252 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7253 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 7254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7255 | break 2 |
| 7256 | fi |
| 7257 | done |
| 7258 | done |
| 7259 | IFS=$as_save_IFS |
| 7260 | |
| 7261 | fi |
| 7262 | fi |
| 7263 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 7264 | if test -n "$ac_ct_OTOOL"; then |
| 7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 7266 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 7267 | else |
| 7268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7269 | $as_echo "no" >&6; } |
| 7270 | fi |
| 7271 | |
| 7272 | if test "x$ac_ct_OTOOL" = x; then |
| 7273 | OTOOL=":" |
| 7274 | else |
| 7275 | case $cross_compiling:$ac_tool_warned in |
| 7276 | yes:) |
| 7277 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7278 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7279 | ac_tool_warned=yes ;; |
| 7280 | esac |
| 7281 | OTOOL=$ac_ct_OTOOL |
| 7282 | fi |
| 7283 | else |
| 7284 | OTOOL="$ac_cv_prog_OTOOL" |
| 7285 | fi |
| 7286 | |
| 7287 | if test -n "$ac_tool_prefix"; then |
| 7288 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 7289 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 7290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7291 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7292 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 7293 | $as_echo_n "(cached) " >&6 |
| 7294 | else |
| 7295 | if test -n "$OTOOL64"; then |
| 7296 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7297 | else |
| 7298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7299 | for as_dir in $PATH |
| 7300 | do |
| 7301 | IFS=$as_save_IFS |
| 7302 | test -z "$as_dir" && as_dir=. |
| 7303 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7304 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7305 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 7306 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7307 | break 2 |
| 7308 | fi |
| 7309 | done |
| 7310 | done |
| 7311 | IFS=$as_save_IFS |
| 7312 | |
| 7313 | fi |
| 7314 | fi |
| 7315 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 7316 | if test -n "$OTOOL64"; then |
| 7317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 7318 | $as_echo "$OTOOL64" >&6; } |
| 7319 | else |
| 7320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7321 | $as_echo "no" >&6; } |
| 7322 | fi |
| 7323 | |
| 7324 | |
| 7325 | fi |
| 7326 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 7327 | ac_ct_OTOOL64=$OTOOL64 |
| 7328 | # Extract the first word of "otool64", so it can be a program name with args. |
| 7329 | set dummy otool64; ac_word=$2 |
| 7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7331 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7332 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 7333 | $as_echo_n "(cached) " >&6 |
| 7334 | else |
| 7335 | if test -n "$ac_ct_OTOOL64"; then |
| 7336 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 7337 | else |
| 7338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7339 | for as_dir in $PATH |
| 7340 | do |
| 7341 | IFS=$as_save_IFS |
| 7342 | test -z "$as_dir" && as_dir=. |
| 7343 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7344 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7345 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 7346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7347 | break 2 |
| 7348 | fi |
| 7349 | done |
| 7350 | done |
| 7351 | IFS=$as_save_IFS |
| 7352 | |
| 7353 | fi |
| 7354 | fi |
| 7355 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7356 | if test -n "$ac_ct_OTOOL64"; then |
| 7357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 7358 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7359 | else |
| 7360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7361 | $as_echo "no" >&6; } |
| 7362 | fi |
| 7363 | |
| 7364 | if test "x$ac_ct_OTOOL64" = x; then |
| 7365 | OTOOL64=":" |
| 7366 | else |
| 7367 | case $cross_compiling:$ac_tool_warned in |
| 7368 | yes:) |
| 7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7370 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7371 | ac_tool_warned=yes ;; |
| 7372 | esac |
| 7373 | OTOOL64=$ac_ct_OTOOL64 |
| 7374 | fi |
| 7375 | else |
| 7376 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7377 | fi |
| 7378 | |
| 7379 | |
| 7380 | |
| 7381 | |
| 7382 | |
| 7383 | |
| 7384 | |
| 7385 | |
| 7386 | |
| 7387 | |
| 7388 | |
| 7389 | |
| 7390 | |
| 7391 | |
| 7392 | |
| 7393 | |
| 7394 | |
| 7395 | |
| 7396 | |
| 7397 | |
| 7398 | |
| 7399 | |
| 7400 | |
| 7401 | |
| 7402 | |
| 7403 | |
| 7404 | |
| 7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 7406 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7407 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 7408 | $as_echo_n "(cached) " >&6 |
| 7409 | else |
| 7410 | lt_cv_apple_cc_single_mod=no |
| 7411 | if test -z "$LT_MULTI_MODULE"; then |
| 7412 | # By default we will add the -single_module flag. You can override |
| 7413 | # by either setting the environment variable LT_MULTI_MODULE |
| 7414 | # non-empty at configure time, or by adding -multi_module to the |
| 7415 | # link flags. |
| 7416 | rm -rf libconftest.dylib* |
| 7417 | echo "int foo(void){return 1;}" > conftest.c |
| 7418 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7419 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7420 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7421 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7422 | _lt_result=$? |
| 7423 | # If there is a non-empty error log, and "single_module" |
| 7424 | # appears in it, assume the flag caused a linker warning |
| 7425 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 7426 | cat conftest.err >&5 |
| 7427 | # Otherwise, if the output was created with a 0 exit code from |
| 7428 | # the compiler, it worked. |
| 7429 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 7430 | lt_cv_apple_cc_single_mod=yes |
| 7431 | else |
| 7432 | cat conftest.err >&5 |
| 7433 | fi |
| 7434 | rm -rf libconftest.dylib* |
| 7435 | rm -f conftest.* |
| 7436 | fi |
| 7437 | fi |
| 7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7439 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7440 | |
| 7441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7442 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7443 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 7444 | $as_echo_n "(cached) " >&6 |
| 7445 | else |
| 7446 | lt_cv_ld_exported_symbols_list=no |
| 7447 | save_LDFLAGS=$LDFLAGS |
| 7448 | echo "_main" > conftest.sym |
| 7449 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7451 | /* end confdefs.h. */ |
| 7452 | |
| 7453 | int |
| 7454 | main () |
| 7455 | { |
| 7456 | |
| 7457 | ; |
| 7458 | return 0; |
| 7459 | } |
| 7460 | _ACEOF |
| 7461 | if ac_fn_c_try_link "$LINENO"; then : |
| 7462 | lt_cv_ld_exported_symbols_list=yes |
| 7463 | else |
| 7464 | lt_cv_ld_exported_symbols_list=no |
| 7465 | fi |
| 7466 | rm -f core conftest.err conftest.$ac_objext \ |
| 7467 | conftest$ac_exeext conftest.$ac_ext |
| 7468 | LDFLAGS=$save_LDFLAGS |
| 7469 | |
| 7470 | fi |
| 7471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7472 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7473 | |
| 7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 7475 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 7476 | if ${lt_cv_ld_force_load+:} false; then : |
| 7477 | $as_echo_n "(cached) " >&6 |
| 7478 | else |
| 7479 | lt_cv_ld_force_load=no |
| 7480 | cat > conftest.c << _LT_EOF |
| 7481 | int forced_loaded() { return 2;} |
| 7482 | _LT_EOF |
| 7483 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 7484 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 7485 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 7486 | $AR cru libconftest.a conftest.o 2>&5 |
| 7487 | echo "$RANLIB libconftest.a" >&5 |
| 7488 | $RANLIB libconftest.a 2>&5 |
| 7489 | cat > conftest.c << _LT_EOF |
| 7490 | int main() { return 0;} |
| 7491 | _LT_EOF |
| 7492 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 7493 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 7494 | _lt_result=$? |
| 7495 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 7496 | cat conftest.err >&5 |
| 7497 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 7498 | lt_cv_ld_force_load=yes |
| 7499 | else |
| 7500 | cat conftest.err >&5 |
| 7501 | fi |
| 7502 | rm -f conftest.err libconftest.a conftest conftest.c |
| 7503 | rm -rf conftest.dSYM |
| 7504 | |
| 7505 | fi |
| 7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 7507 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 7508 | case $host_os in |
| 7509 | rhapsody* | darwin1.[012]) |
| 7510 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 7511 | darwin1.*) |
| 7512 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 7513 | darwin*) # darwin 5.x on |
| 7514 | # if running on 10.5 or later, the deployment target defaults |
| 7515 | # to the OS version, if on x86, and 10.4, the deployment |
| 7516 | # target defaults to 10.4. Don't you love it? |
| 7517 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7518 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7519 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 7520 | 10.[012][,.]*) |
| 7521 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 7522 | 10.*) |
| 7523 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 7524 | esac |
| 7525 | ;; |
| 7526 | esac |
| 7527 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 7528 | _lt_dar_single_mod='$single_module' |
| 7529 | fi |
| 7530 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 7531 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 7532 | else |
| 7533 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 7534 | fi |
| 7535 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 7536 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7537 | else |
| 7538 | _lt_dsymutil= |
| 7539 | fi |
| 7540 | ;; |
| 7541 | esac |
| 7542 | |
| 7543 | # func_munge_path_list VARIABLE PATH |
| 7544 | # ----------------------------------- |
| 7545 | # VARIABLE is name of variable containing _space_ separated list of |
| 7546 | # directories to be munged by the contents of PATH, which is string |
| 7547 | # having a format: |
| 7548 | # "DIR[:DIR]:" |
| 7549 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 7550 | # ":DIR[:DIR]" |
| 7551 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 7552 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 7553 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 7554 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 7555 | # "DIR[:DIR]" |
| 7556 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 7557 | func_munge_path_list () |
| 7558 | { |
| 7559 | case x$2 in |
| 7560 | x) |
| 7561 | ;; |
| 7562 | *:) |
| 7563 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 7564 | ;; |
| 7565 | x:*) |
| 7566 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 7567 | ;; |
| 7568 | *::*) |
| 7569 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 7570 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 7571 | ;; |
| 7572 | *) |
| 7573 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 7574 | ;; |
| 7575 | esac |
| 7576 | } |
| 7577 | |
| 7578 | ac_ext=c |
| 7579 | ac_cpp='$CPP $CPPFLAGS' |
| 7580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 7584 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 7585 | # On Suns, sometimes $CPP names a directory. |
| 7586 | if test -n "$CPP" && test -d "$CPP"; then |
| 7587 | CPP= |
| 7588 | fi |
| 7589 | if test -z "$CPP"; then |
| 7590 | if ${ac_cv_prog_CPP+:} false; then : |
| 7591 | $as_echo_n "(cached) " >&6 |
| 7592 | else |
| 7593 | # Double quotes because CPP needs to be expanded |
| 7594 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7595 | do |
| 7596 | ac_preproc_ok=false |
| 7597 | for ac_c_preproc_warn_flag in '' yes |
| 7598 | do |
| 7599 | # Use a header file that comes with gcc, so configuring glibc |
| 7600 | # with a fresh cross-compiler works. |
| 7601 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7602 | # <limits.h> exists even on freestanding compilers. |
| 7603 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7604 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7606 | /* end confdefs.h. */ |
| 7607 | #ifdef __STDC__ |
| 7608 | # include <limits.h> |
| 7609 | #else |
| 7610 | # include <assert.h> |
| 7611 | #endif |
| 7612 | Syntax error |
| 7613 | _ACEOF |
| 7614 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7615 | |
| 7616 | else |
| 7617 | # Broken: fails on valid input. |
| 7618 | continue |
| 7619 | fi |
| 7620 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7621 | |
| 7622 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7623 | # can be detected and how. |
| 7624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7625 | /* end confdefs.h. */ |
| 7626 | #include <ac_nonexistent.h> |
| 7627 | _ACEOF |
| 7628 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7629 | # Broken: success on invalid input. |
| 7630 | continue |
| 7631 | else |
| 7632 | # Passes both tests. |
| 7633 | ac_preproc_ok=: |
| 7634 | break |
| 7635 | fi |
| 7636 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7637 | |
| 7638 | done |
| 7639 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7640 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7641 | if $ac_preproc_ok; then : |
| 7642 | break |
| 7643 | fi |
| 7644 | |
| 7645 | done |
| 7646 | ac_cv_prog_CPP=$CPP |
| 7647 | |
| 7648 | fi |
| 7649 | CPP=$ac_cv_prog_CPP |
| 7650 | else |
| 7651 | ac_cv_prog_CPP=$CPP |
| 7652 | fi |
| 7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 7654 | $as_echo "$CPP" >&6; } |
| 7655 | ac_preproc_ok=false |
| 7656 | for ac_c_preproc_warn_flag in '' yes |
| 7657 | do |
| 7658 | # Use a header file that comes with gcc, so configuring glibc |
| 7659 | # with a fresh cross-compiler works. |
| 7660 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7661 | # <limits.h> exists even on freestanding compilers. |
| 7662 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7663 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7665 | /* end confdefs.h. */ |
| 7666 | #ifdef __STDC__ |
| 7667 | # include <limits.h> |
| 7668 | #else |
| 7669 | # include <assert.h> |
| 7670 | #endif |
| 7671 | Syntax error |
| 7672 | _ACEOF |
| 7673 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7674 | |
| 7675 | else |
| 7676 | # Broken: fails on valid input. |
| 7677 | continue |
| 7678 | fi |
| 7679 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7680 | |
| 7681 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7682 | # can be detected and how. |
| 7683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7684 | /* end confdefs.h. */ |
| 7685 | #include <ac_nonexistent.h> |
| 7686 | _ACEOF |
| 7687 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7688 | # Broken: success on invalid input. |
| 7689 | continue |
| 7690 | else |
| 7691 | # Passes both tests. |
| 7692 | ac_preproc_ok=: |
| 7693 | break |
| 7694 | fi |
| 7695 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7696 | |
| 7697 | done |
| 7698 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7699 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7700 | if $ac_preproc_ok; then : |
| 7701 | |
| 7702 | else |
| 7703 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7704 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7705 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7706 | See \`config.log' for more details" "$LINENO" 5; } |
| 7707 | fi |
| 7708 | |
| 7709 | ac_ext=c |
| 7710 | ac_cpp='$CPP $CPPFLAGS' |
| 7711 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7714 | |
| 7715 | |
| 7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7717 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 7718 | if ${ac_cv_header_stdc+:} false; then : |
| 7719 | $as_echo_n "(cached) " >&6 |
| 7720 | else |
| 7721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7722 | /* end confdefs.h. */ |
| 7723 | #include <stdlib.h> |
| 7724 | #include <stdarg.h> |
| 7725 | #include <string.h> |
| 7726 | #include <float.h> |
| 7727 | |
| 7728 | int |
| 7729 | main () |
| 7730 | { |
| 7731 | |
| 7732 | ; |
| 7733 | return 0; |
| 7734 | } |
| 7735 | _ACEOF |
| 7736 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7737 | ac_cv_header_stdc=yes |
| 7738 | else |
| 7739 | ac_cv_header_stdc=no |
| 7740 | fi |
| 7741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7742 | |
| 7743 | if test $ac_cv_header_stdc = yes; then |
| 7744 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7746 | /* end confdefs.h. */ |
| 7747 | #include <string.h> |
| 7748 | |
| 7749 | _ACEOF |
| 7750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7751 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7752 | |
| 7753 | else |
| 7754 | ac_cv_header_stdc=no |
| 7755 | fi |
| 7756 | rm -f conftest* |
| 7757 | |
| 7758 | fi |
| 7759 | |
| 7760 | if test $ac_cv_header_stdc = yes; then |
| 7761 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7763 | /* end confdefs.h. */ |
| 7764 | #include <stdlib.h> |
| 7765 | |
| 7766 | _ACEOF |
| 7767 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7768 | $EGREP "free" >/dev/null 2>&1; then : |
| 7769 | |
| 7770 | else |
| 7771 | ac_cv_header_stdc=no |
| 7772 | fi |
| 7773 | rm -f conftest* |
| 7774 | |
| 7775 | fi |
| 7776 | |
| 7777 | if test $ac_cv_header_stdc = yes; then |
| 7778 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7779 | if test "$cross_compiling" = yes; then : |
| 7780 | : |
| 7781 | else |
| 7782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7783 | /* end confdefs.h. */ |
| 7784 | #include <ctype.h> |
| 7785 | #include <stdlib.h> |
| 7786 | #if ((' ' & 0x0FF) == 0x020) |
| 7787 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7788 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7789 | #else |
| 7790 | # define ISLOWER(c) \ |
| 7791 | (('a' <= (c) && (c) <= 'i') \ |
| 7792 | || ('j' <= (c) && (c) <= 'r') \ |
| 7793 | || ('s' <= (c) && (c) <= 'z')) |
| 7794 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7795 | #endif |
| 7796 | |
| 7797 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7798 | int |
| 7799 | main () |
| 7800 | { |
| 7801 | int i; |
| 7802 | for (i = 0; i < 256; i++) |
| 7803 | if (XOR (islower (i), ISLOWER (i)) |
| 7804 | || toupper (i) != TOUPPER (i)) |
| 7805 | return 2; |
| 7806 | return 0; |
| 7807 | } |
| 7808 | _ACEOF |
| 7809 | if ac_fn_c_try_run "$LINENO"; then : |
| 7810 | |
| 7811 | else |
| 7812 | ac_cv_header_stdc=no |
| 7813 | fi |
| 7814 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7815 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7816 | fi |
| 7817 | |
| 7818 | fi |
| 7819 | fi |
| 7820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7821 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 7822 | if test $ac_cv_header_stdc = yes; then |
| 7823 | |
| 7824 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 7825 | |
| 7826 | fi |
| 7827 | |
| 7828 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7829 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7830 | inttypes.h stdint.h unistd.h |
| 7831 | do : |
| 7832 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7833 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7834 | " |
| 7835 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 7836 | cat >>confdefs.h <<_ACEOF |
| 7837 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7838 | _ACEOF |
| 7839 | |
| 7840 | fi |
| 7841 | |
| 7842 | done |
| 7843 | |
| 7844 | |
| 7845 | for ac_header in dlfcn.h |
| 7846 | do : |
| 7847 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7848 | " |
| 7849 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 7850 | cat >>confdefs.h <<_ACEOF |
| 7851 | #define HAVE_DLFCN_H 1 |
| 7852 | _ACEOF |
| 7853 | |
| 7854 | fi |
| 7855 | |
| 7856 | done |
| 7857 | |
| 7858 | |
| 7859 | |
| 7860 | |
| 7861 | |
| 7862 | # Set options |
| 7863 | |
| 7864 | |
| 7865 | |
| 7866 | enable_dlopen=no |
| 7867 | |
| 7868 | |
| 7869 | enable_win32_dll=no |
| 7870 | |
| 7871 | |
| 7872 | # Check whether --enable-shared was given. |
| 7873 | if test "${enable_shared+set}" = set; then : |
| 7874 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7875 | case $enableval in |
| 7876 | yes) enable_shared=yes ;; |
| 7877 | no) enable_shared=no ;; |
| 7878 | *) |
| 7879 | enable_shared=no |
| 7880 | # Look at the argument we got. We use all the common list separators. |
| 7881 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 7882 | for pkg in $enableval; do |
| 7883 | IFS=$lt_save_ifs |
| 7884 | if test "X$pkg" = "X$p"; then |
| 7885 | enable_shared=yes |
| 7886 | fi |
| 7887 | done |
| 7888 | IFS=$lt_save_ifs |
| 7889 | ;; |
| 7890 | esac |
| 7891 | else |
| 7892 | enable_shared=yes |
| 7893 | fi |
| 7894 | |
| 7895 | |
| 7896 | |
| 7897 | |
| 7898 | |
| 7899 | |
| 7900 | |
| 7901 | |
| 7902 | |
| 7903 | # Check whether --enable-static was given. |
| 7904 | if test "${enable_static+set}" = set; then : |
| 7905 | enableval=$enable_static; p=${PACKAGE-default} |
| 7906 | case $enableval in |
| 7907 | yes) enable_static=yes ;; |
| 7908 | no) enable_static=no ;; |
| 7909 | *) |
| 7910 | enable_static=no |
| 7911 | # Look at the argument we got. We use all the common list separators. |
| 7912 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 7913 | for pkg in $enableval; do |
| 7914 | IFS=$lt_save_ifs |
| 7915 | if test "X$pkg" = "X$p"; then |
| 7916 | enable_static=yes |
| 7917 | fi |
| 7918 | done |
| 7919 | IFS=$lt_save_ifs |
| 7920 | ;; |
| 7921 | esac |
| 7922 | else |
| 7923 | enable_static=yes |
| 7924 | fi |
| 7925 | |
| 7926 | |
| 7927 | |
| 7928 | |
| 7929 | |
| 7930 | |
| 7931 | |
| 7932 | |
| 7933 | |
| 7934 | |
| 7935 | # Check whether --with-pic was given. |
| 7936 | if test "${with_pic+set}" = set; then : |
| 7937 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 7938 | case $withval in |
| 7939 | yes|no) pic_mode=$withval ;; |
| 7940 | *) |
| 7941 | pic_mode=default |
| 7942 | # Look at the argument we got. We use all the common list separators. |
| 7943 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 7944 | for lt_pkg in $withval; do |
| 7945 | IFS=$lt_save_ifs |
| 7946 | if test "X$lt_pkg" = "X$lt_p"; then |
| 7947 | pic_mode=yes |
| 7948 | fi |
| 7949 | done |
| 7950 | IFS=$lt_save_ifs |
| 7951 | ;; |
| 7952 | esac |
| 7953 | else |
| 7954 | pic_mode=default |
| 7955 | fi |
| 7956 | |
| 7957 | |
| 7958 | |
| 7959 | |
| 7960 | |
| 7961 | |
| 7962 | |
| 7963 | |
| 7964 | # Check whether --enable-fast-install was given. |
| 7965 | if test "${enable_fast_install+set}" = set; then : |
| 7966 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7967 | case $enableval in |
| 7968 | yes) enable_fast_install=yes ;; |
| 7969 | no) enable_fast_install=no ;; |
| 7970 | *) |
| 7971 | enable_fast_install=no |
| 7972 | # Look at the argument we got. We use all the common list separators. |
| 7973 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 7974 | for pkg in $enableval; do |
| 7975 | IFS=$lt_save_ifs |
| 7976 | if test "X$pkg" = "X$p"; then |
| 7977 | enable_fast_install=yes |
| 7978 | fi |
| 7979 | done |
| 7980 | IFS=$lt_save_ifs |
| 7981 | ;; |
| 7982 | esac |
| 7983 | else |
| 7984 | enable_fast_install=yes |
| 7985 | fi |
| 7986 | |
| 7987 | |
| 7988 | |
| 7989 | |
| 7990 | |
| 7991 | |
| 7992 | |
| 7993 | |
| 7994 | shared_archive_member_spec= |
| 7995 | case $host,$enable_shared in |
| 7996 | power*-*-aix[5-9]*,yes) |
| 7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 7998 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
| 7999 | |
| 8000 | # Check whether --with-aix-soname was given. |
| 8001 | if test "${with_aix_soname+set}" = set; then : |
| 8002 | withval=$with_aix_soname; case $withval in |
| 8003 | aix|svr4|both) |
| 8004 | ;; |
| 8005 | *) |
| 8006 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 8007 | ;; |
| 8008 | esac |
| 8009 | lt_cv_with_aix_soname=$with_aix_soname |
| 8010 | else |
| 8011 | if ${lt_cv_with_aix_soname+:} false; then : |
| 8012 | $as_echo_n "(cached) " >&6 |
| 8013 | else |
| 8014 | lt_cv_with_aix_soname=aix |
| 8015 | fi |
| 8016 | |
| 8017 | with_aix_soname=$lt_cv_with_aix_soname |
| 8018 | fi |
| 8019 | |
| 8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 8021 | $as_echo "$with_aix_soname" >&6; } |
| 8022 | if test aix != "$with_aix_soname"; then |
| 8023 | # For the AIX way of multilib, we name the shared archive member |
| 8024 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 8025 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 8026 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 8027 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 8028 | if test 64 = "${OBJECT_MODE-32}"; then |
| 8029 | shared_archive_member_spec=shr_64 |
| 8030 | else |
| 8031 | shared_archive_member_spec=shr |
| 8032 | fi |
| 8033 | fi |
| 8034 | ;; |
| 8035 | *) |
| 8036 | with_aix_soname=aix |
| 8037 | ;; |
| 8038 | esac |
| 8039 | |
| 8040 | |
| 8041 | |
| 8042 | |
| 8043 | |
| 8044 | |
| 8045 | |
| 8046 | |
| 8047 | |
| 8048 | |
| 8049 | # This can be used to rebuild libtool when needed |
| 8050 | LIBTOOL_DEPS=$ltmain |
| 8051 | |
| 8052 | # Always use our own libtool. |
| 8053 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8054 | |
| 8055 | |
| 8056 | |
| 8057 | |
| 8058 | |
| 8059 | |
| 8060 | |
| 8061 | |
| 8062 | |
| 8063 | |
| 8064 | |
| 8065 | |
| 8066 | |
| 8067 | |
| 8068 | |
| 8069 | |
| 8070 | |
| 8071 | |
| 8072 | |
| 8073 | |
| 8074 | |
| 8075 | |
| 8076 | |
| 8077 | |
| 8078 | |
| 8079 | |
| 8080 | |
| 8081 | |
| 8082 | |
| 8083 | |
| 8084 | test -z "$LN_S" && LN_S="ln -s" |
| 8085 | |
| 8086 | |
| 8087 | |
| 8088 | |
| 8089 | |
| 8090 | |
| 8091 | |
| 8092 | |
| 8093 | |
| 8094 | |
| 8095 | |
| 8096 | |
| 8097 | |
| 8098 | |
| 8099 | if test -n "${ZSH_VERSION+set}"; then |
| 8100 | setopt NO_GLOB_SUBST |
| 8101 | fi |
| 8102 | |
| 8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 8104 | $as_echo_n "checking for objdir... " >&6; } |
| 8105 | if ${lt_cv_objdir+:} false; then : |
| 8106 | $as_echo_n "(cached) " >&6 |
| 8107 | else |
| 8108 | rm -f .libs 2>/dev/null |
| 8109 | mkdir .libs 2>/dev/null |
| 8110 | if test -d .libs; then |
| 8111 | lt_cv_objdir=.libs |
| 8112 | else |
| 8113 | # MS-DOS does not allow filenames that begin with a dot. |
| 8114 | lt_cv_objdir=_libs |
| 8115 | fi |
| 8116 | rmdir .libs 2>/dev/null |
| 8117 | fi |
| 8118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 8119 | $as_echo "$lt_cv_objdir" >&6; } |
| 8120 | objdir=$lt_cv_objdir |
| 8121 | |
| 8122 | |
| 8123 | |
| 8124 | |
| 8125 | |
| 8126 | cat >>confdefs.h <<_ACEOF |
| 8127 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8128 | _ACEOF |
| 8129 | |
| 8130 | |
| 8131 | |
| 8132 | |
| 8133 | case $host_os in |
| 8134 | aix3*) |
| 8135 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8136 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8137 | # vanish in a puff of smoke. |
| 8138 | if test set != "${COLLECT_NAMES+set}"; then |
| 8139 | COLLECT_NAMES= |
| 8140 | export COLLECT_NAMES |
| 8141 | fi |
| 8142 | ;; |
| 8143 | esac |
| 8144 | |
| 8145 | # Global variables: |
| 8146 | ofile=libtool |
| 8147 | can_build_shared=yes |
| 8148 | |
| 8149 | # All known linkers require a '.a' archive for static linking (except MSVC, |
| 8150 | # which needs '.lib'). |
| 8151 | libext=a |
| 8152 | |
| 8153 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 8154 | |
| 8155 | old_CC=$CC |
| 8156 | old_CFLAGS=$CFLAGS |
| 8157 | |
| 8158 | # Set sane defaults for various variables |
| 8159 | test -z "$CC" && CC=cc |
| 8160 | test -z "$LTCC" && LTCC=$CC |
| 8161 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 8162 | test -z "$LD" && LD=ld |
| 8163 | test -z "$ac_objext" && ac_objext=o |
| 8164 | |
| 8165 | func_cc_basename $compiler |
| 8166 | cc_basename=$func_cc_basename_result |
| 8167 | |
| 8168 | |
| 8169 | # Only perform the check for file, if the check method requires it |
| 8170 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 8171 | case $deplibs_check_method in |
| 8172 | file_magic*) |
| 8173 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 8174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8175 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8176 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8177 | $as_echo_n "(cached) " >&6 |
| 8178 | else |
| 8179 | case $MAGIC_CMD in |
| 8180 | [\\/*] | ?:[\\/]*) |
| 8181 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 8182 | ;; |
| 8183 | *) |
| 8184 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 8185 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 8186 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8187 | for ac_dir in $ac_dummy; do |
| 8188 | IFS=$lt_save_ifs |
| 8189 | test -z "$ac_dir" && ac_dir=. |
| 8190 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 8191 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 8192 | if test -n "$file_magic_test_file"; then |
| 8193 | case $deplibs_check_method in |
| 8194 | "file_magic "*) |
| 8195 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8196 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8197 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8198 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8199 | : |
| 8200 | else |
| 8201 | cat <<_LT_EOF 1>&2 |
| 8202 | |
| 8203 | *** Warning: the command libtool uses to detect shared libraries, |
| 8204 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8205 | *** The result is that libtool may fail to recognize shared libraries |
| 8206 | *** as such. This will affect the creation of libtool libraries that |
| 8207 | *** depend on shared libraries, but programs linked with such libtool |
| 8208 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8209 | *** may want to report the problem to your system manager and/or to |
| 8210 | *** bug-libtool@gnu.org |
| 8211 | |
| 8212 | _LT_EOF |
| 8213 | fi ;; |
| 8214 | esac |
| 8215 | fi |
| 8216 | break |
| 8217 | fi |
| 8218 | done |
| 8219 | IFS=$lt_save_ifs |
| 8220 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 8221 | ;; |
| 8222 | esac |
| 8223 | fi |
| 8224 | |
| 8225 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8226 | if test -n "$MAGIC_CMD"; then |
| 8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8228 | $as_echo "$MAGIC_CMD" >&6; } |
| 8229 | else |
| 8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8231 | $as_echo "no" >&6; } |
| 8232 | fi |
| 8233 | |
| 8234 | |
| 8235 | |
| 8236 | |
| 8237 | |
| 8238 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8239 | if test -n "$ac_tool_prefix"; then |
| 8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8241 | $as_echo_n "checking for file... " >&6; } |
| 8242 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8243 | $as_echo_n "(cached) " >&6 |
| 8244 | else |
| 8245 | case $MAGIC_CMD in |
| 8246 | [\\/*] | ?:[\\/]*) |
| 8247 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 8248 | ;; |
| 8249 | *) |
| 8250 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 8251 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 8252 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8253 | for ac_dir in $ac_dummy; do |
| 8254 | IFS=$lt_save_ifs |
| 8255 | test -z "$ac_dir" && ac_dir=. |
| 8256 | if test -f "$ac_dir/file"; then |
| 8257 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 8258 | if test -n "$file_magic_test_file"; then |
| 8259 | case $deplibs_check_method in |
| 8260 | "file_magic "*) |
| 8261 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8262 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8263 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8264 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8265 | : |
| 8266 | else |
| 8267 | cat <<_LT_EOF 1>&2 |
| 8268 | |
| 8269 | *** Warning: the command libtool uses to detect shared libraries, |
| 8270 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8271 | *** The result is that libtool may fail to recognize shared libraries |
| 8272 | *** as such. This will affect the creation of libtool libraries that |
| 8273 | *** depend on shared libraries, but programs linked with such libtool |
| 8274 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8275 | *** may want to report the problem to your system manager and/or to |
| 8276 | *** bug-libtool@gnu.org |
| 8277 | |
| 8278 | _LT_EOF |
| 8279 | fi ;; |
| 8280 | esac |
| 8281 | fi |
| 8282 | break |
| 8283 | fi |
| 8284 | done |
| 8285 | IFS=$lt_save_ifs |
| 8286 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 8287 | ;; |
| 8288 | esac |
| 8289 | fi |
| 8290 | |
| 8291 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8292 | if test -n "$MAGIC_CMD"; then |
| 8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8294 | $as_echo "$MAGIC_CMD" >&6; } |
| 8295 | else |
| 8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8297 | $as_echo "no" >&6; } |
| 8298 | fi |
| 8299 | |
| 8300 | |
| 8301 | else |
| 8302 | MAGIC_CMD=: |
| 8303 | fi |
| 8304 | fi |
| 8305 | |
| 8306 | fi |
| 8307 | ;; |
| 8308 | esac |
| 8309 | |
| 8310 | # Use C for the default configuration in the libtool script |
| 8311 | |
| 8312 | lt_save_CC=$CC |
| 8313 | ac_ext=c |
| 8314 | ac_cpp='$CPP $CPPFLAGS' |
| 8315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8318 | |
| 8319 | |
| 8320 | # Source file extension for C test sources. |
| 8321 | ac_ext=c |
| 8322 | |
| 8323 | # Object file extension for compiled C test sources. |
| 8324 | objext=o |
| 8325 | objext=$objext |
| 8326 | |
| 8327 | # Code to be used in simple compile tests |
| 8328 | lt_simple_compile_test_code="int some_variable = 0;" |
| 8329 | |
| 8330 | # Code to be used in simple link tests |
| 8331 | lt_simple_link_test_code='int main(){return(0);}' |
| 8332 | |
| 8333 | |
| 8334 | |
| 8335 | |
| 8336 | |
| 8337 | |
| 8338 | |
| 8339 | # If no C compiler was specified, use CC. |
| 8340 | LTCC=${LTCC-"$CC"} |
| 8341 | |
| 8342 | # If no C compiler flags were specified, use CFLAGS. |
| 8343 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8344 | |
| 8345 | # Allow CC to be a program name with arguments. |
| 8346 | compiler=$CC |
| 8347 | |
| 8348 | # Save the default compiler, since it gets overwritten when the other |
| 8349 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8350 | compiler_DEFAULT=$CC |
| 8351 | |
| 8352 | # save warnings/boilerplate of simple test code |
| 8353 | ac_outfile=conftest.$ac_objext |
| 8354 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 8355 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8356 | _lt_compiler_boilerplate=`cat conftest.err` |
| 8357 | $RM conftest* |
| 8358 | |
| 8359 | ac_outfile=conftest.$ac_objext |
| 8360 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 8361 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8362 | _lt_linker_boilerplate=`cat conftest.err` |
| 8363 | $RM -r conftest* |
| 8364 | |
| 8365 | |
| 8366 | ## CAVEAT EMPTOR: |
| 8367 | ## There is no encapsulation within the following macros, do not change |
| 8368 | ## the running order or otherwise move them around unless you know exactly |
| 8369 | ## what you are doing... |
| 8370 | if test -n "$compiler"; then |
| 8371 | |
| 8372 | lt_prog_compiler_no_builtin_flag= |
| 8373 | |
| 8374 | if test yes = "$GCC"; then |
| 8375 | case $cc_basename in |
| 8376 | nvcc*) |
| 8377 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8378 | *) |
| 8379 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 8380 | esac |
| 8381 | |
| 8382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8383 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8384 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 8385 | $as_echo_n "(cached) " >&6 |
| 8386 | else |
| 8387 | lt_cv_prog_compiler_rtti_exceptions=no |
| 8388 | ac_outfile=conftest.$ac_objext |
| 8389 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8390 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 8391 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8392 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8393 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8394 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8395 | # The option is referenced via a variable to avoid confusing sed. |
| 8396 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8397 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8398 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8399 | -e 's:$: $lt_compiler_flag:'` |
| 8400 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8401 | (eval "$lt_compile" 2>conftest.err) |
| 8402 | ac_status=$? |
| 8403 | cat conftest.err >&5 |
| 8404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8405 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8406 | # The compiler can only warn and ignore the option if not recognized |
| 8407 | # So say no if there are warnings other than the usual output. |
| 8408 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8409 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8410 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8411 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8412 | fi |
| 8413 | fi |
| 8414 | $RM conftest* |
| 8415 | |
| 8416 | fi |
| 8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8418 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8419 | |
| 8420 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 8421 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8422 | else |
| 8423 | : |
| 8424 | fi |
| 8425 | |
| 8426 | fi |
| 8427 | |
| 8428 | |
| 8429 | |
| 8430 | |
| 8431 | |
| 8432 | |
| 8433 | lt_prog_compiler_wl= |
| 8434 | lt_prog_compiler_pic= |
| 8435 | lt_prog_compiler_static= |
| 8436 | |
| 8437 | |
| 8438 | if test yes = "$GCC"; then |
| 8439 | lt_prog_compiler_wl='-Wl,' |
| 8440 | lt_prog_compiler_static='-static' |
| 8441 | |
| 8442 | case $host_os in |
| 8443 | aix*) |
| 8444 | # All AIX code is PIC. |
| 8445 | if test ia64 = "$host_cpu"; then |
| 8446 | # AIX 5 now supports IA64 processor |
| 8447 | lt_prog_compiler_static='-Bstatic' |
| 8448 | fi |
| 8449 | lt_prog_compiler_pic='-fPIC' |
| 8450 | ;; |
| 8451 | |
| 8452 | amigaos*) |
| 8453 | case $host_cpu in |
| 8454 | powerpc) |
| 8455 | # see comment about AmigaOS4 .so support |
| 8456 | lt_prog_compiler_pic='-fPIC' |
| 8457 | ;; |
| 8458 | m68k) |
| 8459 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8460 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 8461 | # like '-m68040'. |
| 8462 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8463 | ;; |
| 8464 | esac |
| 8465 | ;; |
| 8466 | |
| 8467 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8468 | # PIC is the default for these OSes. |
| 8469 | ;; |
| 8470 | |
| 8471 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8472 | # This hack is so that the source file can tell whether it is being |
| 8473 | # built for inclusion in a dll (and should export symbols for example). |
| 8474 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8475 | # (--disable-auto-import) libraries |
| 8476 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8477 | case $host_os in |
| 8478 | os2*) |
| 8479 | lt_prog_compiler_static='$wl-static' |
| 8480 | ;; |
| 8481 | esac |
| 8482 | ;; |
| 8483 | |
| 8484 | darwin* | rhapsody*) |
| 8485 | # PIC is the default on this platform |
| 8486 | # Common symbols not allowed in MH_DYLIB files |
| 8487 | lt_prog_compiler_pic='-fno-common' |
| 8488 | ;; |
| 8489 | |
| 8490 | haiku*) |
| 8491 | # PIC is the default for Haiku. |
| 8492 | # The "-static" flag exists, but is broken. |
| 8493 | lt_prog_compiler_static= |
| 8494 | ;; |
| 8495 | |
| 8496 | hpux*) |
| 8497 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8498 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8499 | # sets the default TLS model and affects inlining. |
| 8500 | case $host_cpu in |
| 8501 | hppa*64*) |
| 8502 | # +Z the default |
| 8503 | ;; |
| 8504 | *) |
| 8505 | lt_prog_compiler_pic='-fPIC' |
| 8506 | ;; |
| 8507 | esac |
| 8508 | ;; |
| 8509 | |
| 8510 | interix[3-9]*) |
| 8511 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8512 | # Instead, we relocate shared libraries at runtime. |
| 8513 | ;; |
| 8514 | |
| 8515 | msdosdjgpp*) |
| 8516 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8517 | # on systems that don't support them. |
| 8518 | lt_prog_compiler_can_build_shared=no |
| 8519 | enable_shared=no |
| 8520 | ;; |
| 8521 | |
| 8522 | *nto* | *qnx*) |
| 8523 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8524 | # it will coredump. |
| 8525 | lt_prog_compiler_pic='-fPIC -shared' |
| 8526 | ;; |
| 8527 | |
| 8528 | sysv4*MP*) |
| 8529 | if test -d /usr/nec; then |
| 8530 | lt_prog_compiler_pic=-Kconform_pic |
| 8531 | fi |
| 8532 | ;; |
| 8533 | |
| 8534 | *) |
| 8535 | lt_prog_compiler_pic='-fPIC' |
| 8536 | ;; |
| 8537 | esac |
| 8538 | |
| 8539 | case $cc_basename in |
| 8540 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8541 | lt_prog_compiler_wl='-Xlinker ' |
| 8542 | if test -n "$lt_prog_compiler_pic"; then |
| 8543 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 8544 | fi |
| 8545 | ;; |
| 8546 | esac |
| 8547 | else |
| 8548 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8549 | case $host_os in |
| 8550 | aix*) |
| 8551 | lt_prog_compiler_wl='-Wl,' |
| 8552 | if test ia64 = "$host_cpu"; then |
| 8553 | # AIX 5 now supports IA64 processor |
| 8554 | lt_prog_compiler_static='-Bstatic' |
| 8555 | else |
| 8556 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8557 | fi |
| 8558 | ;; |
| 8559 | |
| 8560 | darwin* | rhapsody*) |
| 8561 | # PIC is the default on this platform |
| 8562 | # Common symbols not allowed in MH_DYLIB files |
| 8563 | lt_prog_compiler_pic='-fno-common' |
| 8564 | case $cc_basename in |
| 8565 | nagfor*) |
| 8566 | # NAG Fortran compiler |
| 8567 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8568 | lt_prog_compiler_pic='-PIC' |
| 8569 | lt_prog_compiler_static='-Bstatic' |
| 8570 | ;; |
| 8571 | esac |
| 8572 | ;; |
| 8573 | |
| 8574 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8575 | # This hack is so that the source file can tell whether it is being |
| 8576 | # built for inclusion in a dll (and should export symbols for example). |
| 8577 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8578 | case $host_os in |
| 8579 | os2*) |
| 8580 | lt_prog_compiler_static='$wl-static' |
| 8581 | ;; |
| 8582 | esac |
| 8583 | ;; |
| 8584 | |
| 8585 | hpux9* | hpux10* | hpux11*) |
| 8586 | lt_prog_compiler_wl='-Wl,' |
| 8587 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8588 | # not for PA HP-UX. |
| 8589 | case $host_cpu in |
| 8590 | hppa*64*|ia64*) |
| 8591 | # +Z the default |
| 8592 | ;; |
| 8593 | *) |
| 8594 | lt_prog_compiler_pic='+Z' |
| 8595 | ;; |
| 8596 | esac |
| 8597 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8598 | lt_prog_compiler_static='$wl-a ${wl}archive' |
| 8599 | ;; |
| 8600 | |
| 8601 | irix5* | irix6* | nonstopux*) |
| 8602 | lt_prog_compiler_wl='-Wl,' |
| 8603 | # PIC (with -KPIC) is the default. |
| 8604 | lt_prog_compiler_static='-non_shared' |
| 8605 | ;; |
| 8606 | |
| 8607 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 8608 | case $cc_basename in |
| 8609 | # old Intel for x86_64, which still supported -KPIC. |
| 8610 | ecc*) |
| 8611 | lt_prog_compiler_wl='-Wl,' |
| 8612 | lt_prog_compiler_pic='-KPIC' |
| 8613 | lt_prog_compiler_static='-static' |
| 8614 | ;; |
| 8615 | # icc used to be incompatible with GCC. |
| 8616 | # ICC 10 doesn't accept -KPIC any more. |
| 8617 | icc* | ifort*) |
| 8618 | lt_prog_compiler_wl='-Wl,' |
| 8619 | lt_prog_compiler_pic='-fPIC' |
| 8620 | lt_prog_compiler_static='-static' |
| 8621 | ;; |
| 8622 | # Lahey Fortran 8.1. |
| 8623 | lf95*) |
| 8624 | lt_prog_compiler_wl='-Wl,' |
| 8625 | lt_prog_compiler_pic='--shared' |
| 8626 | lt_prog_compiler_static='--static' |
| 8627 | ;; |
| 8628 | nagfor*) |
| 8629 | # NAG Fortran compiler |
| 8630 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8631 | lt_prog_compiler_pic='-PIC' |
| 8632 | lt_prog_compiler_static='-Bstatic' |
| 8633 | ;; |
| 8634 | tcc*) |
| 8635 | # Fabrice Bellard et al's Tiny C Compiler |
| 8636 | lt_prog_compiler_wl='-Wl,' |
| 8637 | lt_prog_compiler_pic='-fPIC' |
| 8638 | lt_prog_compiler_static='-static' |
| 8639 | ;; |
| 8640 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8641 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8642 | # which looks to be a dead project) |
| 8643 | lt_prog_compiler_wl='-Wl,' |
| 8644 | lt_prog_compiler_pic='-fpic' |
| 8645 | lt_prog_compiler_static='-Bstatic' |
| 8646 | ;; |
| 8647 | ccc*) |
| 8648 | lt_prog_compiler_wl='-Wl,' |
| 8649 | # All Alpha code is PIC. |
| 8650 | lt_prog_compiler_static='-non_shared' |
| 8651 | ;; |
| 8652 | xl* | bgxl* | bgf* | mpixl*) |
| 8653 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 8654 | lt_prog_compiler_wl='-Wl,' |
| 8655 | lt_prog_compiler_pic='-qpic' |
| 8656 | lt_prog_compiler_static='-qstaticlink' |
| 8657 | ;; |
| 8658 | *) |
| 8659 | case `$CC -V 2>&1 | sed 5q` in |
| 8660 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 8661 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8662 | lt_prog_compiler_pic='-KPIC' |
| 8663 | lt_prog_compiler_static='-Bstatic' |
| 8664 | lt_prog_compiler_wl='' |
| 8665 | ;; |
| 8666 | *Sun\ F* | *Sun*Fortran*) |
| 8667 | lt_prog_compiler_pic='-KPIC' |
| 8668 | lt_prog_compiler_static='-Bstatic' |
| 8669 | lt_prog_compiler_wl='-Qoption ld ' |
| 8670 | ;; |
| 8671 | *Sun\ C*) |
| 8672 | # Sun C 5.9 |
| 8673 | lt_prog_compiler_pic='-KPIC' |
| 8674 | lt_prog_compiler_static='-Bstatic' |
| 8675 | lt_prog_compiler_wl='-Wl,' |
| 8676 | ;; |
| 8677 | *Intel*\ [CF]*Compiler*) |
| 8678 | lt_prog_compiler_wl='-Wl,' |
| 8679 | lt_prog_compiler_pic='-fPIC' |
| 8680 | lt_prog_compiler_static='-static' |
| 8681 | ;; |
| 8682 | *Portland\ Group*) |
| 8683 | lt_prog_compiler_wl='-Wl,' |
| 8684 | lt_prog_compiler_pic='-fpic' |
| 8685 | lt_prog_compiler_static='-Bstatic' |
| 8686 | ;; |
| 8687 | esac |
| 8688 | ;; |
| 8689 | esac |
| 8690 | ;; |
| 8691 | |
| 8692 | newsos6) |
| 8693 | lt_prog_compiler_pic='-KPIC' |
| 8694 | lt_prog_compiler_static='-Bstatic' |
| 8695 | ;; |
| 8696 | |
| 8697 | *nto* | *qnx*) |
| 8698 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8699 | # it will coredump. |
| 8700 | lt_prog_compiler_pic='-fPIC -shared' |
| 8701 | ;; |
| 8702 | |
| 8703 | osf3* | osf4* | osf5*) |
| 8704 | lt_prog_compiler_wl='-Wl,' |
| 8705 | # All OSF/1 code is PIC. |
| 8706 | lt_prog_compiler_static='-non_shared' |
| 8707 | ;; |
| 8708 | |
| 8709 | rdos*) |
| 8710 | lt_prog_compiler_static='-non_shared' |
| 8711 | ;; |
| 8712 | |
| 8713 | solaris*) |
| 8714 | lt_prog_compiler_pic='-KPIC' |
| 8715 | lt_prog_compiler_static='-Bstatic' |
| 8716 | case $cc_basename in |
| 8717 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 8718 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8719 | *) |
| 8720 | lt_prog_compiler_wl='-Wl,';; |
| 8721 | esac |
| 8722 | ;; |
| 8723 | |
| 8724 | sunos4*) |
| 8725 | lt_prog_compiler_wl='-Qoption ld ' |
| 8726 | lt_prog_compiler_pic='-PIC' |
| 8727 | lt_prog_compiler_static='-Bstatic' |
| 8728 | ;; |
| 8729 | |
| 8730 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8731 | lt_prog_compiler_wl='-Wl,' |
| 8732 | lt_prog_compiler_pic='-KPIC' |
| 8733 | lt_prog_compiler_static='-Bstatic' |
| 8734 | ;; |
| 8735 | |
| 8736 | sysv4*MP*) |
| 8737 | if test -d /usr/nec; then |
| 8738 | lt_prog_compiler_pic='-Kconform_pic' |
| 8739 | lt_prog_compiler_static='-Bstatic' |
| 8740 | fi |
| 8741 | ;; |
| 8742 | |
| 8743 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8744 | lt_prog_compiler_wl='-Wl,' |
| 8745 | lt_prog_compiler_pic='-KPIC' |
| 8746 | lt_prog_compiler_static='-Bstatic' |
| 8747 | ;; |
| 8748 | |
| 8749 | unicos*) |
| 8750 | lt_prog_compiler_wl='-Wl,' |
| 8751 | lt_prog_compiler_can_build_shared=no |
| 8752 | ;; |
| 8753 | |
| 8754 | uts4*) |
| 8755 | lt_prog_compiler_pic='-pic' |
| 8756 | lt_prog_compiler_static='-Bstatic' |
| 8757 | ;; |
| 8758 | |
| 8759 | *) |
| 8760 | lt_prog_compiler_can_build_shared=no |
| 8761 | ;; |
| 8762 | esac |
| 8763 | fi |
| 8764 | |
| 8765 | case $host_os in |
| 8766 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 8767 | *djgpp*) |
| 8768 | lt_prog_compiler_pic= |
| 8769 | ;; |
| 8770 | *) |
| 8771 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8772 | ;; |
| 8773 | esac |
| 8774 | |
| 8775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8776 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8777 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 8778 | $as_echo_n "(cached) " >&6 |
| 8779 | else |
| 8780 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 8781 | fi |
| 8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 8783 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 8784 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 8785 | |
| 8786 | # |
| 8787 | # Check to make sure the PIC flag actually works. |
| 8788 | # |
| 8789 | if test -n "$lt_prog_compiler_pic"; then |
| 8790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8791 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8792 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 8793 | $as_echo_n "(cached) " >&6 |
| 8794 | else |
| 8795 | lt_cv_prog_compiler_pic_works=no |
| 8796 | ac_outfile=conftest.$ac_objext |
| 8797 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8798 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 8799 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8800 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8801 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8802 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8803 | # The option is referenced via a variable to avoid confusing sed. |
| 8804 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8805 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8806 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8807 | -e 's:$: $lt_compiler_flag:'` |
| 8808 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8809 | (eval "$lt_compile" 2>conftest.err) |
| 8810 | ac_status=$? |
| 8811 | cat conftest.err >&5 |
| 8812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8813 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8814 | # The compiler can only warn and ignore the option if not recognized |
| 8815 | # So say no if there are warnings other than the usual output. |
| 8816 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8817 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8818 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8819 | lt_cv_prog_compiler_pic_works=yes |
| 8820 | fi |
| 8821 | fi |
| 8822 | $RM conftest* |
| 8823 | |
| 8824 | fi |
| 8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8826 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 8827 | |
| 8828 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 8829 | case $lt_prog_compiler_pic in |
| 8830 | "" | " "*) ;; |
| 8831 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8832 | esac |
| 8833 | else |
| 8834 | lt_prog_compiler_pic= |
| 8835 | lt_prog_compiler_can_build_shared=no |
| 8836 | fi |
| 8837 | |
| 8838 | fi |
| 8839 | |
| 8840 | |
| 8841 | |
| 8842 | |
| 8843 | |
| 8844 | |
| 8845 | |
| 8846 | |
| 8847 | |
| 8848 | |
| 8849 | |
| 8850 | # |
| 8851 | # Check to make sure the static flag actually works. |
| 8852 | # |
| 8853 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 8854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8855 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 8856 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 8857 | $as_echo_n "(cached) " >&6 |
| 8858 | else |
| 8859 | lt_cv_prog_compiler_static_works=no |
| 8860 | save_LDFLAGS=$LDFLAGS |
| 8861 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 8862 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 8863 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8864 | # The linker can only warn and ignore the option if not recognized |
| 8865 | # So say no if there are warnings |
| 8866 | if test -s conftest.err; then |
| 8867 | # Append any errors to the config.log. |
| 8868 | cat conftest.err 1>&5 |
| 8869 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 8870 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8871 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 8872 | lt_cv_prog_compiler_static_works=yes |
| 8873 | fi |
| 8874 | else |
| 8875 | lt_cv_prog_compiler_static_works=yes |
| 8876 | fi |
| 8877 | fi |
| 8878 | $RM -r conftest* |
| 8879 | LDFLAGS=$save_LDFLAGS |
| 8880 | |
| 8881 | fi |
| 8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8883 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 8884 | |
| 8885 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 8886 | : |
| 8887 | else |
| 8888 | lt_prog_compiler_static= |
| 8889 | fi |
| 8890 | |
| 8891 | |
| 8892 | |
| 8893 | |
| 8894 | |
| 8895 | |
| 8896 | |
| 8897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8898 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8899 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 8900 | $as_echo_n "(cached) " >&6 |
| 8901 | else |
| 8902 | lt_cv_prog_compiler_c_o=no |
| 8903 | $RM -r conftest 2>/dev/null |
| 8904 | mkdir conftest |
| 8905 | cd conftest |
| 8906 | mkdir out |
| 8907 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8908 | |
| 8909 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8910 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8911 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8912 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8913 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8914 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8915 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8916 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8917 | -e 's:$: $lt_compiler_flag:'` |
| 8918 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8919 | (eval "$lt_compile" 2>out/conftest.err) |
| 8920 | ac_status=$? |
| 8921 | cat out/conftest.err >&5 |
| 8922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8923 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8924 | then |
| 8925 | # The compiler can only warn and ignore the option if not recognized |
| 8926 | # So say no if there are warnings |
| 8927 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 8928 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8929 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8930 | lt_cv_prog_compiler_c_o=yes |
| 8931 | fi |
| 8932 | fi |
| 8933 | chmod u+w . 2>&5 |
| 8934 | $RM conftest* |
| 8935 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8936 | # template instantiation |
| 8937 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8938 | $RM out/* && rmdir out |
| 8939 | cd .. |
| 8940 | $RM -r conftest |
| 8941 | $RM conftest* |
| 8942 | |
| 8943 | fi |
| 8944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8945 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8946 | |
| 8947 | |
| 8948 | |
| 8949 | |
| 8950 | |
| 8951 | |
| 8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8953 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8954 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 8955 | $as_echo_n "(cached) " >&6 |
| 8956 | else |
| 8957 | lt_cv_prog_compiler_c_o=no |
| 8958 | $RM -r conftest 2>/dev/null |
| 8959 | mkdir conftest |
| 8960 | cd conftest |
| 8961 | mkdir out |
| 8962 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8963 | |
| 8964 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8965 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8966 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8967 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8968 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8969 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8970 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8971 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8972 | -e 's:$: $lt_compiler_flag:'` |
| 8973 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8974 | (eval "$lt_compile" 2>out/conftest.err) |
| 8975 | ac_status=$? |
| 8976 | cat out/conftest.err >&5 |
| 8977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8978 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8979 | then |
| 8980 | # The compiler can only warn and ignore the option if not recognized |
| 8981 | # So say no if there are warnings |
| 8982 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 8983 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8984 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8985 | lt_cv_prog_compiler_c_o=yes |
| 8986 | fi |
| 8987 | fi |
| 8988 | chmod u+w . 2>&5 |
| 8989 | $RM conftest* |
| 8990 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8991 | # template instantiation |
| 8992 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8993 | $RM out/* && rmdir out |
| 8994 | cd .. |
| 8995 | $RM -r conftest |
| 8996 | $RM conftest* |
| 8997 | |
| 8998 | fi |
| 8999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9000 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9001 | |
| 9002 | |
| 9003 | |
| 9004 | |
| 9005 | hard_links=nottested |
| 9006 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 9007 | # do not overwrite the value of need_locks provided by the user |
| 9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 9009 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 9010 | hard_links=yes |
| 9011 | $RM conftest* |
| 9012 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9013 | touch conftest.a |
| 9014 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 9015 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 9017 | $as_echo "$hard_links" >&6; } |
| 9018 | if test no = "$hard_links"; then |
| 9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 9020 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 9021 | need_locks=warn |
| 9022 | fi |
| 9023 | else |
| 9024 | need_locks=no |
| 9025 | fi |
| 9026 | |
| 9027 | |
| 9028 | |
| 9029 | |
| 9030 | |
| 9031 | |
| 9032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9033 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 9034 | |
| 9035 | runpath_var= |
| 9036 | allow_undefined_flag= |
| 9037 | always_export_symbols=no |
| 9038 | archive_cmds= |
| 9039 | archive_expsym_cmds= |
| 9040 | compiler_needs_object=no |
| 9041 | enable_shared_with_static_runtimes=no |
| 9042 | export_dynamic_flag_spec= |
| 9043 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 9044 | hardcode_automatic=no |
| 9045 | hardcode_direct=no |
| 9046 | hardcode_direct_absolute=no |
| 9047 | hardcode_libdir_flag_spec= |
| 9048 | hardcode_libdir_separator= |
| 9049 | hardcode_minus_L=no |
| 9050 | hardcode_shlibpath_var=unsupported |
| 9051 | inherit_rpath=no |
| 9052 | link_all_deplibs=unknown |
| 9053 | module_cmds= |
| 9054 | module_expsym_cmds= |
| 9055 | old_archive_from_new_cmds= |
| 9056 | old_archive_from_expsyms_cmds= |
| 9057 | thread_safe_flag_spec= |
| 9058 | whole_archive_flag_spec= |
| 9059 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 9060 | # included in the symbol list |
| 9061 | include_expsyms= |
| 9062 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 9063 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 9064 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 9065 | # as well as any symbol that contains 'd'. |
| 9066 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 9067 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9068 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 9069 | # the symbol is explicitly referenced. Since portable code cannot |
| 9070 | # rely on this symbol name, it's probably fine to never include it in |
| 9071 | # preloaded symbol tables. |
| 9072 | # Exclude shared library initialization/finalization symbols. |
| 9073 | extract_expsyms_cmds= |
| 9074 | |
| 9075 | case $host_os in |
| 9076 | cygwin* | mingw* | pw32* | cegcc*) |
| 9077 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9078 | # When not using gcc, we currently assume that we are using |
| 9079 | # Microsoft Visual C++. |
| 9080 | if test yes != "$GCC"; then |
| 9081 | with_gnu_ld=no |
| 9082 | fi |
| 9083 | ;; |
| 9084 | interix*) |
| 9085 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9086 | with_gnu_ld=yes |
| 9087 | ;; |
| 9088 | openbsd* | bitrig*) |
| 9089 | with_gnu_ld=no |
| 9090 | ;; |
| 9091 | linux* | k*bsd*-gnu | gnu*) |
| 9092 | link_all_deplibs=no |
| 9093 | ;; |
| 9094 | esac |
| 9095 | |
| 9096 | ld_shlibs=yes |
| 9097 | |
| 9098 | # On some targets, GNU ld is compatible enough with the native linker |
| 9099 | # that we're better off using the native interface for both. |
| 9100 | lt_use_gnu_ld_interface=no |
| 9101 | if test yes = "$with_gnu_ld"; then |
| 9102 | case $host_os in |
| 9103 | aix*) |
| 9104 | # The AIX port of GNU ld has always aspired to compatibility |
| 9105 | # with the native linker. However, as the warning in the GNU ld |
| 9106 | # block says, versions before 2.19.5* couldn't really create working |
| 9107 | # shared libraries, regardless of the interface used. |
| 9108 | case `$LD -v 2>&1` in |
| 9109 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 9110 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 9111 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 9112 | *) |
| 9113 | lt_use_gnu_ld_interface=yes |
| 9114 | ;; |
| 9115 | esac |
| 9116 | ;; |
| 9117 | *) |
| 9118 | lt_use_gnu_ld_interface=yes |
| 9119 | ;; |
| 9120 | esac |
| 9121 | fi |
| 9122 | |
| 9123 | if test yes = "$lt_use_gnu_ld_interface"; then |
| 9124 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9125 | wlarc='$wl' |
| 9126 | |
| 9127 | # Set some defaults for GNU ld with shared library support. These |
| 9128 | # are reset later if shared libraries are not supported. Putting them |
| 9129 | # here allows them to be overridden if necessary. |
| 9130 | runpath_var=LD_RUN_PATH |
| 9131 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 9132 | export_dynamic_flag_spec='$wl--export-dynamic' |
| 9133 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9134 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 9135 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 9136 | else |
| 9137 | whole_archive_flag_spec= |
| 9138 | fi |
| 9139 | supports_anon_versioning=no |
| 9140 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
| 9141 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 9142 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9143 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9144 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 9145 | *\ 2.11.*) ;; # other 2.11 versions |
| 9146 | *) supports_anon_versioning=yes ;; |
| 9147 | esac |
| 9148 | |
| 9149 | # See if GNU ld supports shared libraries. |
| 9150 | case $host_os in |
| 9151 | aix[3-9]*) |
| 9152 | # On AIX/PPC, the GNU linker is very broken |
| 9153 | if test ia64 != "$host_cpu"; then |
| 9154 | ld_shlibs=no |
| 9155 | cat <<_LT_EOF 1>&2 |
| 9156 | |
| 9157 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 9158 | *** to be unable to reliably create shared libraries on AIX. |
| 9159 | *** Therefore, libtool is disabling shared libraries support. If you |
| 9160 | *** really care for shared libraries, you may want to install binutils |
| 9161 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 9162 | *** You will then need to restart the configuration process. |
| 9163 | |
| 9164 | _LT_EOF |
| 9165 | fi |
| 9166 | ;; |
| 9167 | |
| 9168 | amigaos*) |
| 9169 | case $host_cpu in |
| 9170 | powerpc) |
| 9171 | # see comment about AmigaOS4 .so support |
| 9172 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9173 | archive_expsym_cmds='' |
| 9174 | ;; |
| 9175 | m68k) |
| 9176 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 9177 | hardcode_libdir_flag_spec='-L$libdir' |
| 9178 | hardcode_minus_L=yes |
| 9179 | ;; |
| 9180 | esac |
| 9181 | ;; |
| 9182 | |
| 9183 | beos*) |
| 9184 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9185 | allow_undefined_flag=unsupported |
| 9186 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9187 | # support --undefined. This deserves some investigation. FIXME |
| 9188 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9189 | else |
| 9190 | ld_shlibs=no |
| 9191 | fi |
| 9192 | ;; |
| 9193 | |
| 9194 | cygwin* | mingw* | pw32* | cegcc*) |
| 9195 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 9196 | # as there is no search path for DLLs. |
| 9197 | hardcode_libdir_flag_spec='-L$libdir' |
| 9198 | export_dynamic_flag_spec='$wl--export-all-symbols' |
| 9199 | allow_undefined_flag=unsupported |
| 9200 | always_export_symbols=no |
| 9201 | enable_shared_with_static_runtimes=yes |
| 9202 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 9203 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 9204 | |
| 9205 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 9206 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9207 | # If the export-symbols file already is a .def file, use it as |
| 9208 | # is; otherwise, prepend EXPORTS... |
| 9209 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 9210 | cp $export_symbols $output_objdir/$soname.def; |
| 9211 | else |
| 9212 | echo EXPORTS > $output_objdir/$soname.def; |
| 9213 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9214 | fi~ |
| 9215 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9216 | else |
| 9217 | ld_shlibs=no |
| 9218 | fi |
| 9219 | ;; |
| 9220 | |
| 9221 | haiku*) |
| 9222 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9223 | link_all_deplibs=yes |
| 9224 | ;; |
| 9225 | |
| 9226 | os2*) |
| 9227 | hardcode_libdir_flag_spec='-L$libdir' |
| 9228 | hardcode_minus_L=yes |
| 9229 | allow_undefined_flag=unsupported |
| 9230 | shrext_cmds=.dll |
| 9231 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 9232 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 9233 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 9234 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 9235 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 9236 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 9237 | emximp -o $lib $output_objdir/$libname.def' |
| 9238 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 9239 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 9240 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 9241 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 9242 | prefix_cmds="$SED"~ |
| 9243 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 9244 | prefix_cmds="$prefix_cmds -e 1d"; |
| 9245 | fi~ |
| 9246 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 9247 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 9248 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 9249 | emximp -o $lib $output_objdir/$libname.def' |
| 9250 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 9251 | enable_shared_with_static_runtimes=yes |
| 9252 | ;; |
| 9253 | |
| 9254 | interix[3-9]*) |
| 9255 | hardcode_direct=no |
| 9256 | hardcode_shlibpath_var=no |
| 9257 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 9258 | export_dynamic_flag_spec='$wl-E' |
| 9259 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9260 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9261 | # default) and relocated if they conflict, which is a slow very memory |
| 9262 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9263 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9264 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9265 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9266 | archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9267 | ;; |
| 9268 | |
| 9269 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9270 | tmp_diet=no |
| 9271 | if test linux-dietlibc = "$host_os"; then |
| 9272 | case $cc_basename in |
| 9273 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9274 | esac |
| 9275 | fi |
| 9276 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9277 | && test no = "$tmp_diet" |
| 9278 | then |
| 9279 | tmp_addflag=' $pic_flag' |
| 9280 | tmp_sharedflag='-shared' |
| 9281 | case $cc_basename,$host_cpu in |
| 9282 | pgcc*) # Portland Group C compiler |
| 9283 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 9284 | tmp_addflag=' $pic_flag' |
| 9285 | ;; |
| 9286 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9287 | # Portland Group f77 and f90 compilers |
| 9288 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 9289 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 9290 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 9291 | tmp_addflag=' -i_dynamic' ;; |
| 9292 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9293 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9294 | ifc* | ifort*) # Intel Fortran compiler |
| 9295 | tmp_addflag=' -nofor_main' ;; |
| 9296 | lf95*) # Lahey Fortran 8.1 |
| 9297 | whole_archive_flag_spec= |
| 9298 | tmp_sharedflag='--shared' ;; |
| 9299 | nagfor*) # NAGFOR 5.3 |
| 9300 | tmp_sharedflag='-Wl,-shared' ;; |
| 9301 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9302 | tmp_sharedflag='-qmkshrobj' |
| 9303 | tmp_addflag= ;; |
| 9304 | nvcc*) # Cuda Compiler Driver 2.2 |
| 9305 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 9306 | compiler_needs_object=yes |
| 9307 | ;; |
| 9308 | esac |
| 9309 | case `$CC -V 2>&1 | sed 5q` in |
| 9310 | *Sun\ C*) # Sun C 5.9 |
| 9311 | whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 9312 | compiler_needs_object=yes |
| 9313 | tmp_sharedflag='-G' ;; |
| 9314 | *Sun\ F*) # Sun Fortran 8.3 |
| 9315 | tmp_sharedflag='-G' ;; |
| 9316 | esac |
| 9317 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9318 | |
| 9319 | if test yes = "$supports_anon_versioning"; then |
| 9320 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9321 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9322 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9323 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 9324 | fi |
| 9325 | |
| 9326 | case $cc_basename in |
| 9327 | tcc*) |
| 9328 | export_dynamic_flag_spec='-rdynamic' |
| 9329 | ;; |
| 9330 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 9331 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9332 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9333 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 9334 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 9335 | if test yes = "$supports_anon_versioning"; then |
| 9336 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9337 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9338 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9339 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9340 | fi |
| 9341 | ;; |
| 9342 | esac |
| 9343 | else |
| 9344 | ld_shlibs=no |
| 9345 | fi |
| 9346 | ;; |
| 9347 | |
| 9348 | netbsd* | netbsdelf*-gnu) |
| 9349 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9350 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9351 | wlarc= |
| 9352 | else |
| 9353 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9354 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 9355 | fi |
| 9356 | ;; |
| 9357 | |
| 9358 | solaris*) |