configure

changeset 2
217c90acc389
parent 0
ac8e19023b12
child 6
9db76e20e21e
equal deleted inserted replaced
1:91065eba8e1b 2:217c90acc389
1824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1827 1827
1828 1828
1829 AM_CONFIG_HEADER(config.h) 1829 ac_config_headers="$ac_config_headers config.h"
1830
1830 SUBDIRS="thermometers" 1831 SUBDIRS="thermometers"
1831 1832
1832 1833
1833 PACKAGE="mbsePi-apps" 1834 PACKAGE="mbsePi-apps"
1834 VERSION="0.0.0" 1835 VERSION="0.0.0"
3347 3348
3348 test "x$prefix" = xNONE && prefix=$ac_default_prefix 3349 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3349 # Let make expand exec_prefix. 3350 # Let make expand exec_prefix.
3350 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3351 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3351 3352
3352 # Transform confdefs.h into DEFS. 3353 DEFS=-DHAVE_CONFIG_H
3353 # Protect against shell expansion while executing Makefile rules.
3354 # Protect against Makefile macro expansion.
3355 #
3356 # If the first sed substitution is executed (which looks for macros that
3357 # take arguments), then branch to the quote section. Otherwise,
3358 # look for a macro that doesn't take arguments.
3359 ac_script='
3360 :mline
3361 /\\$/{
3362 N
3363 s,\\\n,,
3364 b mline
3365 }
3366 t clear
3367 :clear
3368 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3369 t quote
3370 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3371 t quote
3372 b any
3373 :quote
3374 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3375 s/\[/\\&/g
3376 s/\]/\\&/g
3377 s/\$/$$/g
3378 H
3379 :any
3380 ${
3381 g
3382 s/^\n//
3383 s/\n/ /g
3384 p
3385 }
3386 '
3387 DEFS=`sed -n "$ac_script" confdefs.h`
3388
3389 3354
3390 ac_libobjs= 3355 ac_libobjs=
3391 ac_ltlibobjs= 3356 ac_ltlibobjs=
3392 U= 3357 U=
3393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3358 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3817 3782
3818 case $ac_config_files in *" 3783 case $ac_config_files in *"
3819 "*) set x $ac_config_files; shift; ac_config_files=$*;; 3784 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3820 esac 3785 esac
3821 3786
3787 case $ac_config_headers in *"
3788 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3789 esac
3822 3790
3823 3791
3824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3825 # Files that config.status was made for. 3793 # Files that config.status was made for.
3826 config_files="$ac_config_files" 3794 config_files="$ac_config_files"
3795 config_headers="$ac_config_headers"
3827 3796
3828 _ACEOF 3797 _ACEOF
3829 3798
3830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3831 ac_cs_usage="\ 3800 ac_cs_usage="\
3842 do not print progress messages 3811 do not print progress messages
3843 -d, --debug don't remove temporary files 3812 -d, --debug don't remove temporary files
3844 --recheck update $as_me by reconfiguring in the same conditions 3813 --recheck update $as_me by reconfiguring in the same conditions
3845 --file=FILE[:TEMPLATE] 3814 --file=FILE[:TEMPLATE]
3846 instantiate the configuration file FILE 3815 instantiate the configuration file FILE
3816 --header=FILE[:TEMPLATE]
3817 instantiate the configuration header FILE
3847 3818
3848 Configuration files: 3819 Configuration files:
3849 $config_files 3820 $config_files
3821
3822 Configuration headers:
3823 $config_headers
3850 3824
3851 Report bugs to the package provider." 3825 Report bugs to the package provider."
3852 3826
3853 _ACEOF 3827 _ACEOF
3854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3906 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 3880 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3907 '') as_fn_error $? "missing file argument" ;; 3881 '') as_fn_error $? "missing file argument" ;;
3908 esac 3882 esac
3909 as_fn_append CONFIG_FILES " '$ac_optarg'" 3883 as_fn_append CONFIG_FILES " '$ac_optarg'"
3910 ac_need_defaults=false;; 3884 ac_need_defaults=false;;
3911 --he | --h | --help | --hel | -h ) 3885 --header | --heade | --head | --hea )
3886 $ac_shift
3887 case $ac_optarg in
3888 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3889 esac
3890 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3891 ac_need_defaults=false;;
3892 --he | --h)
3893 # Conflict between --help and --header
3894 as_fn_error $? "ambiguous option: \`$1'
3895 Try \`$0 --help' for more information.";;
3896 --help | --hel | -h )
3912 $as_echo "$ac_cs_usage"; exit ;; 3897 $as_echo "$ac_cs_usage"; exit ;;
3913 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3914 | -silent | --silent | --silen | --sile | --sil | --si | --s) 3899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3915 ac_cs_silent=: ;; 3900 ac_cs_silent=: ;;
3916 3901
3962 3947
3963 # Handling of arguments. 3948 # Handling of arguments.
3964 for ac_config_target in $ac_config_targets 3949 for ac_config_target in $ac_config_targets
3965 do 3950 do
3966 case $ac_config_target in 3951 case $ac_config_target in
3952 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3967 "Makefile.global") CONFIG_FILES="$CONFIG_FILES Makefile.global" ;; 3953 "Makefile.global") CONFIG_FILES="$CONFIG_FILES Makefile.global" ;;
3968 3954
3969 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 3955 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3970 esac 3956 esac
3971 done 3957 done
3975 # then the envvar interface is used. Set only those that are not. 3961 # then the envvar interface is used. Set only those that are not.
3976 # We use the long form for the default assignment because of an extremely 3962 # We use the long form for the default assignment because of an extremely
3977 # bizarre bug on SunOS 4.1.3. 3963 # bizarre bug on SunOS 4.1.3.
3978 if $ac_need_defaults; then 3964 if $ac_need_defaults; then
3979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3980 fi 3967 fi
3981 3968
3982 # Have a temporary directory for convenience. Make it in the build tree 3969 # Have a temporary directory for convenience. Make it in the build tree
3983 # simply because there is no reason against having it here, and in addition, 3970 # simply because there is no reason against having it here, and in addition,
3984 # creating and moving files from /tmp can sometimes cause problems. 3971 # creating and moving files from /tmp can sometimes cause problems.
4162 fi 4149 fi
4163 4150
4164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4165 fi # test -n "$CONFIG_FILES" 4152 fi # test -n "$CONFIG_FILES"
4166 4153
4167 4154 # Set up the scripts for CONFIG_HEADERS section.
4168 eval set X " :F $CONFIG_FILES " 4155 # No need to generate them if there are no CONFIG_HEADERS.
4156 # This happens for instance with `./config.status Makefile'.
4157 if test -n "$CONFIG_HEADERS"; then
4158 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4159 BEGIN {
4160 _ACEOF
4161
4162 # Transform confdefs.h into an awk script `defines.awk', embedded as
4163 # here-document in config.status, that substitutes the proper values into
4164 # config.h.in to produce config.h.
4165
4166 # Create a delimiter string that does not exist in confdefs.h, to ease
4167 # handling of long lines.
4168 ac_delim='%!_!# '
4169 for ac_last_try in false false :; do
4170 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4171 if test -z "$ac_tt"; then
4172 break
4173 elif $ac_last_try; then
4174 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4175 else
4176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4177 fi
4178 done
4179
4180 # For the awk script, D is an array of macro values keyed by name,
4181 # likewise P contains macro parameters if any. Preserve backslash
4182 # newline sequences.
4183
4184 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4185 sed -n '
4186 s/.\{148\}/&'"$ac_delim"'/g
4187 t rset
4188 :rset
4189 s/^[ ]*#[ ]*define[ ][ ]*/ /
4190 t def
4191 d
4192 :def
4193 s/\\$//
4194 t bsnl
4195 s/["\\]/\\&/g
4196 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4197 D["\1"]=" \3"/p
4198 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4199 d
4200 :bsnl
4201 s/["\\]/\\&/g
4202 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4203 D["\1"]=" \3\\\\\\n"\\/p
4204 t cont
4205 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4206 t cont
4207 d
4208 :cont
4209 n
4210 s/.\{148\}/&'"$ac_delim"'/g
4211 t clear
4212 :clear
4213 s/\\$//
4214 t bsnlc
4215 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4216 d
4217 :bsnlc
4218 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4219 b cont
4220 ' <confdefs.h | sed '
4221 s/'"$ac_delim"'/"\\\
4222 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4223
4224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4225 for (key in D) D_is_set[key] = 1
4226 FS = ""
4227 }
4228 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4229 line = \$ 0
4230 split(line, arg, " ")
4231 if (arg[1] == "#") {
4232 defundef = arg[2]
4233 mac1 = arg[3]
4234 } else {
4235 defundef = substr(arg[1], 2)
4236 mac1 = arg[2]
4237 }
4238 split(mac1, mac2, "(") #)
4239 macro = mac2[1]
4240 prefix = substr(line, 1, index(line, defundef) - 1)
4241 if (D_is_set[macro]) {
4242 # Preserve the white space surrounding the "#".
4243 print prefix "define", macro P[macro] D[macro]
4244 next
4245 } else {
4246 # Replace #undef with comments. This is necessary, for example,
4247 # in the case of _POSIX_SOURCE, which is predefined and required
4248 # on some systems where configure will not decide to define it.
4249 if (defundef == "undef") {
4250 print "/*", prefix defundef, macro, "*/"
4251 next
4252 }
4253 }
4254 }
4255 { print }
4256 _ACAWK
4257 _ACEOF
4258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4259 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4260 fi # test -n "$CONFIG_HEADERS"
4261
4262
4263 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4169 shift 4264 shift
4170 for ac_tag 4265 for ac_tag
4171 do 4266 do
4172 case $ac_tag in 4267 case $ac_tag in
4173 :[FHLC]) ac_mode=$ac_tag; continue;; 4268 :[FHLC]) ac_mode=$ac_tag; continue;;
4371 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 4466 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4372 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 4467 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4373 esac \ 4468 esac \
4374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4375 ;; 4470 ;;
4376 4471 :H)
4472 #
4473 # CONFIG_HEADER
4474 #
4475 if test x"$ac_file" != x-; then
4476 {
4477 $as_echo "/* $configure_input */" \
4478 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4479 } >"$ac_tmp/config.h" \
4480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4481 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4483 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4484 else
4485 rm -f "$ac_file"
4486 mv "$ac_tmp/config.h" "$ac_file" \
4487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4488 fi
4489 else
4490 $as_echo "/* $configure_input */" \
4491 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4492 || as_fn_error $? "could not create -" "$LINENO" 5
4493 fi
4494 ;;
4377 4495
4378 4496
4379 esac 4497 esac
4380 4498
4381 done # for ac_tag 4499 done # for ac_tag

mercurial